Hi All,
Thanks for the help in advance. I'm running a STATA code that has long been in use, and every calendar year I just update some dates. Have never had an issue. Unfortunately, now when I'm merging two .csv files on the same variable - an id variable called "rifisid" I get this error message:
. merge m:1 rifisid fccpclosedate using "Tidy675_2021.dta", gen(merge675)
key variable rifisid is long in master but str8 in using data
Each key variable -- the variables on which observations are matched -- must be of the same generic type in the master and using datasets. Same generic type means both numeric or both
string.
How do I change the type of variable? What does this even mean? I see people run into this with dates on this forum, but don't see anything about regular variables. Thank you!
Jane
Thanks for the help in advance. I'm running a STATA code that has long been in use, and every calendar year I just update some dates. Have never had an issue. Unfortunately, now when I'm merging two .csv files on the same variable - an id variable called "rifisid" I get this error message:
. merge m:1 rifisid fccpclosedate using "Tidy675_2021.dta", gen(merge675)
key variable rifisid is long in master but str8 in using data
Each key variable -- the variables on which observations are matched -- must be of the same generic type in the master and using datasets. Same generic type means both numeric or both
string.
How do I change the type of variable? What does this even mean? I see people run into this with dates on this forum, but don't see anything about regular variables. Thank you!
Jane
Comment