search for: m0823

Displaying 1 result from an estimated 1 matches for "m0823".

Did you mean: 0823
2010 Aug 19
1
modifying factors in a data frame
Hi All I have a data frame in which on the columns is a factor with following levels Levels: M006 M0114 M0379 M0432 M0823 M1012 M1096 M1107 SW393 SW708 I want to change all the M006 to "1", M0114 to "2" and so on. What I am trying is not working. data1$sample[data1$sample =='M006'] <- "1" Warning message: In `[<-.factor`(`*tmp*`, data1$sample == "M006", value =...