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
local macro text with line breakHi there Does anyone know if there is a way to spread the text contents of a local macro across mul…
Color changes with PNG export.On the left, we have the graph I actually want (ignore please the slight transparency difference bet…
Editing graph with a TIFF fileHi everyone, Trying to find out if there's a way for me to edit my graph using stata's graph editor…
Formal tests of volatility in STATA17Dear Statlist: I have longitudinal data on employee data across multiple years and organizations. I…
pweight with melogitI have a Panel dataset with 260,647 data points consisting of 260,647 Respondents within 43,400 hous…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Values
Post a Comment