R , rattle
here is my data :
KK<- c('yes','no','yes','yes','dp')
LL<- c('dp','no','yes','yes','no')
II<- c('yes','dp','no','no','no')
JJ<- c('yes','no','yes','yes','dp')
AA<- c('no','dp','yes','yes','yes')
MYDATA <- data.frame(KK,LL,II,JJ,AA);MYDATA
Target:
recode 「no」 to 「0.0」
recode 「yes」to 「1.0」
recode 「dp」to 「0.5」
Question: how can i recode in r with the package 「rattle」