[R] How to call a value labels attribute?

From: Heinz Tuechler <tuechler_at_gmx.at>
Date: Tue 23 May 2006 - 10:17:21 EST


Dear All,

after searching on CRAN I got the impression that there is no standard way in R to label values of a numerical variable. Since this would be useful for me I intend to create such an attribute, at the moment for my personal use.
Still I would like to choose a name which does not conflict with names of commonly used attributes.

Would value.labels or vallabs create conflicts?

The attribute should be structured as data.frame with two columns, levels (numeric) and labels (character). These could then also be used to transform from numeric to factor. If the attribute is copied to the factor variable it could also serve to retransform the factor to the original numerical variable.

Comments? Ideas?

Thanks

Heinz Tüchler



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 23 09:20:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 04 Jun 2006 - 00:10:29 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.