I am trying to import a csv file in which the first row has variable names (that I want to keep) and the rows I want to read start on line 4 (That is, I do not want to read rows 2 and 3).
I have tried this
. import delimited "myfile.csv", varn(1) delimiter(comma) rowrange(1 4: )
but Stata does not like that row range syntax.
Is there a way to specify a row range to read several rows, then skip several, and then read the rest of the rows?
I have tried this
. import delimited "myfile.csv", varn(1) delimiter(comma) rowrange(1 4: )
but Stata does not like that row range syntax.
Is there a way to specify a row range to read several rows, then skip several, and then read the rest of the rows?
Comment