getnrows | R Documentation |
Use iterators to avoid the memory overhead of obtaining the number of rows of a file.
getnrows(file, n = 10000)
file |
the name of a file (possible with a path) |
n |
the size of the chunks used by the iterator |
an integer
data(CO2) write.csv(CO2, "CO2.csv", row.names=FALSE) getnrows("CO2.csv") unlink("CO2.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.