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
Searching packages stored at SSC but returns nothingDear Stata users, I find an annoying problem recently. I search packages and Stata returns nothing,…
Compatibility of Stata 16 and Stata 17 outputs?At my academic workplace I have Stata 16 MP (16.0, not updated -- long story, endless fights with th…
Hte package - I cannot perform the command with a poisson distributionHello I'm using the hte package, more specifically the hte sm function, in order to obtain a multil…
Interpolation Method: panel data setHello, I show you an example of the dataset that I have: Code: * Example generated by -dataex-. …
Calculate how many words separated by a comma match between two string variables gameid year credits1 credits2 1 1996 Aleksandr Kravchuk,Alexey Menshikov,Alexey Menshikov,Rosti…
Subscribe to:
Post Comments (Atom)
0 Response to Using detring to remove special characters
Post a Comment