[R] "labels" attached to variable names
Anne
anne.piotet at urbanet.ch
Thu Jan 6 16:46:10 CET 2005
I use Frank Harrell's library Hmisc to do this, it is very convenient!
>library(Hmisc)
> label(myVar)<-"my variable"
Anne
----- Original Message -----
From: "Denis Chabot" <chabotd at globetrotter.net>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, January 06, 2005 3:40 PM
Subject: [R] "labels" attached to variable names
> Hi,
>
> Can we attach a more descriptive "label" (I may use the wrong
> terminology, which would explain why I found nothing on the FAQ) to
> variable names, and later have an easy way to switch to these labels in
> plots? I fear this is not possible and one must enter this by hand as
> ylab and xlab when making plots.
>
> Thanks in advance,
>
> Denis Chabot
> ------------------------------------------------------------------------
> ---------------------------
> Denis Chabot, Ph.D.
> Chercheur en bioénergétique Bioenergetics researcher
> Institut Maurice-Lamontagne Institut Maurice-Lamontagne
> Pêches et Océans Canada Fisheries & Oceans Canada
> CP 1000, Mont-Joli, QC PB 1000, Mont-Joli, QC
> G5H 3Z4 G5H 3Z4
> Canada Canada
>
> (418) 775-0624 (418) 775-0624
> http://www.qc.dfo-mpo.gc.ca/iml
>
> ______________________________________________
> R-help at 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
More information about the R-help
mailing list