Hello,
I'm working with a dataset and I want to destring a variable. This variable is a string but with blank spaces. For context, when i type in codebook I get the following result.
Type: String (str15)
Unique values: 3,972 Missing "": 0/5,949
Examples: "78176 6"
"159120 2"
"239 4 2"
"321139 2"
I tried to destring it but it doesn't work and I get the message 'contains nonnumeric characters; no replace'. I'm not too sure how to proceed with this. Would really appreciate some help!
Related Posts with Help with destringing a variable
Model Specification with GSEM Stata including both multilevel and simple regression modelling?Hello everyone! My research model includes both Level 1 (individual) and Level 2 (team) variables. I…
Identifying events within a future time windowDear Statalist users -- Assume that we have the following toy example: Code: input firm_id year ev…
Create year variable from yearly-monthly data.Hi all, In the current dataset, I have yearly-monthly data and I would like to transform it into ye…
putexcel problem with double replace and local macrosI think this is probably a bug report, but I'll just show what happens and let others decide. Mostly…
Moderating impactDear Statalist, Actually, I am bit confused between the joint effect and the moderating impact. I me…
Subscribe to:
Post Comments (Atom)
0 Response to Help with destringing a variable
Post a Comment