I have a table data structure that contains 10000 rows (using R package). I know how to save the whole object using the function write.table(...); however, I am wondering if there is an easy way to save just the first N rows ( in the same order ) of that table, where N<10000. I am sure I can use a loop to iterate over the first N rows of the table, but an easier predefined function or parameter would always be helpful. Any ideas?
使用object[1:N,]
和write.table ();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.