user12519191
user12519191

Reputation:

revaluing variables in R

I have 500 entries in a column and I want to change them with the following function:

data[data$HouseStyle,"HouseStyle"]<-revalue(data$HouseStyle,c("2Story"="1.5Sto"))

I get as an ouput the original 500 entries PLUS the 500 revalued entries(of course I only want the revalued ones). What am I doing wrong? Thank you for your help!

Upvotes: 0

Views: 77

Answers (1)

dvd280
dvd280

Reputation: 962

As Konrad mentioned in his comment :

data$HouseStyle <-revalue(data$HouseStyle,c("2Story"="1.5Sto"))

Upvotes: 1

Related Questions