Skip to content
Prev 12011 / 398502 Next

changing values

On Thu, 28 Jun 2001, Antonio Olinto wrote:

            
1 and 2 will be 1 and 3 and 4 will be 2, e.g.:
transformed in 1 1 1 1 2 1 2 2 ... ? (I have more than 200 lines in
my dataframe)
[1] 1 1 1 1 2 1 2 2
Levels:  1 2

is the simplest answer.