I am trying to import a csv file (separated by commas) in which one variable contains very long strings (>300 characters). Unfortunately, Stata seems to truncate the string variable when I import the data (i.e., certain terms or words are cut off), so I lose information. I have read that Stata can hold very long strings since version 13, but I am still facing the truncation problem in version 16. I'm sure I missed something very trivial, but any help would be welcome.
For importing the data I use:
Code:
insheet using "mydata.csv", names comma
Marvin
0 Response to Long string variable
Post a Comment