Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-19 Thread Monsieur Do
Indeed, as David pointed out, all the portion that used courier font (all the good stuff) was absent from the email posting.  Thanks for your answers. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-19 Thread Frank Harrell
Sorry about the nabble problem. At any rate, do require(Hmisc) then ?label to see how to associate a vector of labels with all the variables in a data frame at once. Frank do999 wrote: Indeed, as David pointed out, all the portion that used courier font (all the good stuff) was absent from

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-17 Thread Monsieur Do
@r-project.org  Subject: Re: [R] Labelling all variables at once (using Hmisc label)  Message-ID: 1313493727519-3746928.p...@n4.nabble.com  Content-Type: text/plain; charset=UTF-8    Do require(Hmisc); ?label to see the help file for label.  It will show you  how to do this:     Monsieur Do wrote

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-17 Thread Frank Harrell
: 11  Date: Tue, 16 Aug 2011 04:22:07 -0700 (PDT)  From: Frank Harrell lt;f.harr...@vanderbilt.edugt;  To: r-help@r-project.org  Subject: Re: [R] Labelling all variables at once (using Hmisc label)  Message-ID: 1313493727519-3746928.p...@n4.nabble.com  Content-Type: text/plain; charset=UTF-8

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-17 Thread David Winsemius
(Warning: data and labels are not of same length\n) return(x) } Thanks Message: 11 Date: Tue, 16 Aug 2011 04:22:07 -0700 (PDT) From: Frank Harrell lt;f.harr...@vanderbilt.edugt; To: r-help@r-project.org Subject: Re: [R] Labelling all variables at once (using Hmisc label) Message-ID

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-17 Thread array chip
] Labelling all variables at once (using Hmisc label) On Aug 17, 2011, at 5:49 PM, Frank Harrell wrote: I'm puzzled.  I provided a solution that did not require looping. Frank Hi Frank; Do you realize that some portions of your Nabble postings are not being communicated to the ordinary mail

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-16 Thread Frank Harrell
Do require(Hmisc); ?label to see the help file for label. It will show you how to do this: Monsieur Do wrote: The labels can contain much more than just names. In my case, they are variable descriptions (items from a questionnaire). I need to keep the names as they are, hence the need for

[R] Labelling all variables at once (using Hmisc label)

2011-08-15 Thread Monsieur Do
I have a dataset and a list of labels. I simply want to apply the labels to the variables, all at once. The only way I was able to do it was using a loop:     for (i in 1:length(data))  label(data[,i]) - data.labels[i] I'd like to find the non-loop way to do it, using apply or the like... Any

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-15 Thread Sarah Goslee
On Mon, Aug 15, 2011 at 3:53 PM, Monsieur Do nonaupourr...@yahoo.ca wrote: I have a dataset and a list of labels. I simply want to apply the labels to the variables, all at once. The only way I was able to do it was using a loop: for (i in 1:length(data)) label(data[,i]) - data.labels[i]

Re: [R] Labelling all variables at once (using Hmisc label)

2011-08-15 Thread Monsieur Do
The labels can contain much more than just names. In my case, they are variable descriptions (items from a questionnaire). I need to keep the names as they are, hence the need for Hmisc's labels. On Mon, Aug 15, 2011 at 3:53 PM, Monsieur Do nonaupourr...@yahoo.ca wrote: I have a dataset and a