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
Accessing temporary file produced by -crtrees- in mataHi, I am trying to access a temporary file (matatrees) produced by the -crtrees- command in stata. …
Computing spatial weights for Moran's I #spmap #shp2dta #spatwmatDear Statalist, I am doing district level analysis (640 districts) on various health related indica…
Interpreting rescaled variables in PPMLI rescaled my dependent variable and main covariate by dividing both by 1 million while carrying out…
Writing a program with specific line alternatingHi everyone, I wish to write a program that can be applied to multiple scenarios. For example, cons…
Looping without removing local macroI am looping over multiple sheets in an Excel with some macros. Within the loop, I need to add a pre…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Values
Post a Comment