[R] Question about range of letters
Nia Gupta
nia_gupta at yahoo.com
Sat Oct 4 15:21:06 CEST 2014
Hello,
I have a column with a bunch of letters. I would like to keep some of these letters (A,C,D,L) and turn the rest into 'X'.
I have tried using ifelse with '|' in between the argument but it didn't work nor did 4 separate ifelse statements.
Example, I currently have:
Letters A B C D E
I would like to have:
Letters A X C D X
Thank you
[[alternative HTML version deleted]]
More information about the R-help
mailing list