Dear Statalist,
I'm trying to import a very large (over 200 millions rows with over 40 variables) CSV file into the Stata. However I only need to use a couple of the variables in the CSV file. They are not saved by each other so I cannot use the colrange() option.
I noticed there is a extvarlist parameter for the import delimited command and based on my reading of the manual, it seems I can specify the columns that I wish to import. However, I tried but never got it done. I always got error message as below.
Can someone help with how I should use this function or is there any other way around to import a subset of variables from a huge CSV file?
Thank you!
I'm trying to import a very large (over 200 millions rows with over 40 variables) CSV file into the Stata. However I only need to use a couple of the variables in the CSV file. They are not saved by each other so I cannot use the colrange() option.
I noticed there is a extvarlist parameter for the import delimited command and based on my reading of the manual, it seems I can specify the columns that I wish to import. However, I tried but never got it done. I always got error message as below.
Code:
import delimited amount using "contribDB_2024.csv", varnames(1) clear rowrange(1:4) (encoding automatically selected: ISO-8859-1) could not name variables specified r(198);
Thank you!

Comment