I have downloaded data from a survey where the first row of the Excel file (csv file to be specific) contains the variable names, and the second row is the raw question text. Some of those survey questions are very long (think multiple paragraphs of text) and Stata is having a hard time reading the resulting file--the variable names translate fine, but then the first 30 or so rows turn into broken up bits of text from survey questions entered as values in some columns, which also means everything gets uploaded as strings.
I've tried a few things (like changing the delimiter, the row range, etc.) to no avail. Of course, an easy manual solution is to just delete the problem row directly in Excel before importing into Stata (in which case it uploads fine), but is there any other advanced (and more replicable) workaround while importing that could be useful?
I've tried a few things (like changing the delimiter, the row range, etc.) to no avail. Of course, an easy manual solution is to just delete the problem row directly in Excel before importing into Stata (in which case it uploads fine), but is there any other advanced (and more replicable) workaround while importing that could be useful?
Comment