Dear Stata experts,
I want to replace all string values starting with 'QC_6200945' of the variable SampleID with only QC_6200945 (i.e. keeping only QC_6200945 in the name). The data looks like this:
SampleID
QC_6200945+_c_31
QC_6200945+_c_32
QC_6200945+_c_33
QC_6200945+_c_34
etc.
I have Stata 15.
Thank you in advance.
Related Posts with Replacing Values
Stata 16 undo redoHi all I am sorry but I have a basic issue: I just moved from a very old Stata version (Stata 11) to…
Random selection of observations in a variableHi, I have a dataset with 1500 each for 46 countries. But I want to make a random selection of coun…
xline codeDear Statalists, Hope you are all well. Is there any code to adjust the diagram (as shown below)? I…
Correlated RE Ordered Probit modeld: meaning of option i(pid)Dear Statalist users, I am estimating a Correlated RE Ordered Probit model in a panel context, whic…
Order of layersHi! If we consider different plots in a twoway graph as layers and if we don't change the order of p…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Values
Post a Comment