此链接列出的数据集格式中的哪一种是最容易加载并在 R 中进行处理?使用文本编辑器几分钟应该足以将文本版本转换为文字数据,但其他形式之一是否可以在少于 O(n) 用户的时间内加载?
我找到了这个IO选项的详细列表< /a> 但它似乎不是特别有帮助。
PS我以前从未使用过R,并且试图帮助一位需要这样做的朋友 。
Which of the dataset formats listed at this link is the easiest to load for processing in R? A few minutes with a text editor should be enough to turn the text version into literal data but can one of the other forms be loaded in less than O(n) user effort?
I've found this laundry list of IO options but it dosn't seem especially helpful.
P.s. I've never used R before and am trying to help a friend who is the one that needs to do this.
发布评论
评论(3)
获取文本文件并按照 电子表格中的说明进行操作R 数据导入/导出的数据部分。除非绝对必要,否则我会避免尝试读取 Excel 文件。
它可能很简单:
Grab the text files and follow the instructions in the spreadsheet-like data section of R Data Import/Export. I would avoid trying to read from Excel files unless you absolutely have to.
It could be as easy as:
如果其他一切都失败了,为什么不阅读专门用于数据导入/导出的手册< /a>?
导入数据
是,调用其中任何一个首选都是困难的 - 这完全取决于手头的任务。
If everything else fails, why not read the manual devoted to Data Import / Export ?
You can import data from
so calling any one of these preferred is diffcult -- it all depends on the task at hand.
从可用的选项中,制表符分隔的文本文件是最容易导入的。接下来是 SPSS 文件,然后是其他所有内容。我同意其他海报,避免使用 .xls 文件(或将单页工作簿转换为 tsv、csv。foreign
包可用于打开这些 SPSS 文件,这同样简单:
From the options you have available, the tab delimited text files are the easiest to import. Followed by the SPSS files and then everything else. I agree with other posters, avoid files with .xls (or convert single sheet workbooks into tsv, csv.
The foreign package can be used to open those SPSS files which is just as easy: