Colleagues,
I have a dataset with a land-use description codified with a alphanumeric string. Some observations are the followings:
var1 value
R(60ECL(60VAP_20EDFea_10ZAU_10OCT)_40UEN(45VAP_20Z AU_20OCT_15EDFea)) 14
R(60IAS(70EDFnv_20ZAU_10VAP)_40UEN(60VAP_40EDFea)) 12
R(70ERG(60ZAU_15EDFea_15VAP_10OCT)_30EDU(40EDFea_2 5OCT_20VAP_15ZAU)) 46.5
R(90UCS(75EDFea_25VAP)_10ERG(45VAP_35EDFem_20ZAU)) 2
it contains different type of land-use described by letters and its percentages by number. in addition, a land can have two or more description and subdescriptions.
I want to calculate the total value of "ZAU" in each observation but i don´t know how to do that. the complete table has more than 500 observations so it could take me hours to calculate this value for each one. Does anyone have any idea how to do it?
Related Posts with How to calculate a value from a string
Comparison of the dataHello room, Am struggling to do variation comparison between variables. What is the best method to …
Update to -estout- available from SSCAn update to the estout package is available from the SSC Archive. The update fixes a number of issu…
-heatplot- update: -fast- option for big dataAn update to the heatplot package is now available from SSC. To install the update, type Code: . s…
Balancing treatment and control group with - weight -Hi I have a cross sectional study (individuals from 26 countries) in an RD-design. The treatment is…
Creating a time series that displays the minimum price for multiple offers of the same item that run for discrete time periodsHello I am currently working on a project which observes an identical product that being offered by…
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate a value from a string
Post a Comment