[R] Replacing a value in a dataframe

arunkumar1111 akpbond007 at gmail.com
Wed Nov 30 09:16:39 CET 2011


hi

I have data like this in a dataframe

Var  Value Cheque
X1    40    FALSE
X2    20    FALSE
X3    28    TRUE

I want to replace it FLASE  with 0 and TRUE with 1. 

is there any method by which i can do without using LOOP

--
View this message in context: http://r.789695.n4.nabble.com/Replacing-a-value-in-a-dataframe-tp4122188p4122188.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list