While importing the attached mdl_course.csv with -import delimited- in Stata 16, the variable "fullname" is read as strL (long string) which is not its natural fit -- since the longest string it contains is 134 characters long:
Code:
. import delimited using mdl_course.csv, delimiter(",") encoding("utf-8") clear
(30 vars, 144 obs)
. d fullname
storage display value
variable name type format label variable label
------------------------------------------------------------------------------
fullname strL %9sCode:
. insheet using mdl_course.csv, comma names clear (30 vars, 144 obs)
Code:
. d fullname
storage display value
variable name type format label variable label
------------------------------------------------------------------------------
fullname str134 %134sDo you have any hint to explain the difference? Why could -import delimited- be reading the variable as strL instead of str134?
Thank you,
0 Response to Import delimited recognizes (wrongly?) a variable as srtL
Post a Comment