Hi all,
I'm trying to remove special characters from a string variable. I have two variables. One contains only "-", another contains "-" and "+".
I successfully removed "-" from the first variable. When I try to remove "-" and "+" together, The Stata shows 'option "+ not allowed'. Here is my code: destring var, gen(new) ignore("-", "+"). How can I fix this? Thank you!
Related Posts with Using detring to remove special characters
Gen variable w Conditions & CalculationHi, I want to create a variable based on a couple conditions and haven't found an example to apply t…
Finding difference in prevalence between yearsI have a dataset of all cases of a specific disease, pemphigus, for 10 years and am using survey wei…
Issues with Float VariablesHello everyone, I'm currently working with an imported .csv dataset containing information about pe…
How to edit the height of a bar graph ?Hello dear community, I would like to edit the height of a stacked bar graph I construct. Here is th…
Reclink not returning any matchesI'm attempting to merge two datasets together using reclink, but I'm not understanding exactly why I…
Subscribe to:
Post Comments (Atom)
0 Response to Using detring to remove special characters
Post a Comment