using the command:
read.csv("someFile.csv", nrows=100);
I can load the first 100 rows of a given CSV file. I am wondering whether R loads the whole file and shows only the first 100 rows or does it load only the requested rows to memory. If this is true, live memory usage might be reduced, which is important when working in a PC. So is it?
EDIT: checking the help ?read.csv , section memory usage, says that:
Using nrows, even as a mild over-estimate, will help memory usage.
but it doesn't say how.
?read.csv
says : There is extensive discussion in the ‘R Data Import/Export’ manual. Sometimes it is as easy as reading the manual... – Joris Meys