Hi, My data.frame as follows; a b c d 1 58009 2010-11-02 0 NA 2 114761 2011-07-28 1 2008-11-05 3 184440 2011-07-28 1 2009-12-08 4 189372 2011-07-28 0 NA 5 105286 NA 2 NA 6 186717 2011-07-28 0 NA 7 189106 2011-07-28 0 NA 8 127306 2011-07-28 0 NA 9 157342 2011-04-25 0 NA
> library("prettyR") > add.value.labels(test2$c, "alive","dead","missed") Error in add.value.labels(test2$c, "alive", "dead", "missed") : unused argument(s) ("dead", "missed") > add.value.labels(test2$c, "alive") [1] 0 1 1 0 2 0 0 0 0 attr(,"value.labels") alive <NA> <NA> 0 1 2 This function allows only one label. How can add second and other labels? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/value-labels-tp3735947p3738244.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.