Despite looking stumped by some "basic" r commands. This is the third time for me taking this course (Roger Peng's R programming on Coursera) because I end up lagging behind. I am a Stata user so am well versed in statistics.
Here are the problems I am having: First, how do I find the number of rows in a csv file. I found the answer because it is not a very big dataset so I just scrolled down.
The following code got me the first two rows:
read.csv ("hw1_data-3.csv", nrows = 2)
But I also need the last two rows and when I try,
read.csv ("hw1_data-3.csv", nrows = 152:153)
I get the error
Error: unexpected numeric constant in "read.csv ("hw1_data-3.csv", nrows 152"
Would love some help on this