Displaying 1 result from an estimated 1 matches for "tmpold".
Did you mean:
tmpal
2006 Nov 20
4
how to use the switch statement
Good morning,
I am trying to recode the values of a column in a data frame and,
instead of using a long series of if/else statements I would like to use
a switch (as it is, for instance, in the C programming language).
I have a column of this type:
AT
BB
B1
B1
CC
CC
T6
B1
CC
BB
TT
AT
AT
AT
TT
BB
...
and I need to change this coding (if it's AT then it should be A1, if
it's BB then