Hello,
I am trying to import a .shp shapefile containing English local authorities into Stata using shp2dta user written command, but I get an error message saying "long invalid varname" (signalling that the shapefile dataset includes a variable named "long", which is an invalid variable name within Stata - if I have understood correctly).
Is there a way of amending the varname within the shp2dta command to successfully import it?
Or is it necessary to use a workaround by e.g. importing into R to rename/delete the variable called "long" (as noted by Carolin Thol in this previous post: https://www.statalist.org/forums/for...files-in-stata)? If anyone has successfully done this and is happy to share steps, that would be much appreciated (I have managed to upload into R, but it does not display like a "normal" dataset so I have not found a way of amending the variable).
Many thanks!
Francesca
Related Posts with Importing .shp file to Stata with "long" varname
Adding frequencies conditional on several variablesHello to everyone! I am very new to Stata and I am struggling with a problem, which I cannot solve …
working with discrepant entries for the same participant!greetings, I am stuck trying to organize my large dataset for participants with ethnicity records. T…
Storing no of observations in regressions performed using a loopHi, I'm running regressions in a loop and I'm able to store the coefficients and also other correspo…
Matrix and Vector ManipulationThe data I have is on the country, sector and time level. Specifically, I am finding the proportion …
Twoway Graph in StataHello everyone, I have a panel of 68 countries that are observed from 1989-2012. I am trying to mak…
Subscribe to:
Post Comments (Atom)
0 Response to Importing .shp file to Stata with "long" varname
Post a Comment