在Julia中读写RData文件 [英] Reading and writing RData files in Julia
本文介绍了在Julia中读写RData文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用Google搜索,但是在Julia中找不到任何可以读写R的RData(RDa)文件的函数.有没有可以允许我执行此操作的库/函数/包?在DataFrames的src目录中似乎有一个RDA.jl文件,但我在DataFrames文档中没有找到任何提及.
I googled but couldn't find any functions in Julia that can read and write R's RData (RDa) files. Is there any library / function / package that can allow me to do this? There appears to be a RDA.jl file in the src directory of DataFrames but I didn't find any mention of this in the DataFrames documentation.
推荐答案
您要查找的功能是DataFrames软件包随附的read_rda.因此,
The function you are looking for is read_rda which comes with the DataFrames package. So,
read_rda(filename)
应该可以工作,并返回带有变量名称=>数据的Dict.
should work and return a Dict with variable names => data.
这篇关于在Julia中读写RData文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文