我有 N 行的 csv 文件,其中每一行对应一个数据点。有没有办法从这个 csv 文件中读取一组预先指定的行。
最佳答案
您可以指定 skip
和 nrows
read.csv
的参数:
skip
integer: the number of lines of the data file to skip before beginning to read data.
nrows
integer: the maximum number of rows to read in. Negative and other invalid values are ignored.
关于r - 从R中的csv导入几行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13828512/