Re: [R] Retrieving Labels from vars/cols

2013-06-19 Thread Lívio Cipriano
On 19 June 2013 09:26:30 David Carlson wrote: > variable.labels attribute returned > by read.spss in package foreign? If so, you should try the > attributes() or the attr() function: Hi, I used attr(test,"variable.labels")[i][1]) and it worked. Thanks Lívio Cipriano _

Re: [R] Retrieving Labels from vars/cols

2013-06-19 Thread Lívio Cipriano
On 19 June 2013 09:26:30 David Carlson wrote: > Perhaps you are talking about the variable.labels attribute returned > by read.spss in package foreign? That is it. I'll try it Thanks Lívio Cipriano __ R-help@r-project.org mailing list https://stat.et

Re: [R] Retrieving Labels from vars/cols

2013-06-19 Thread David Carlson
sity College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Adams, Jean Sent: Wednesday, June 19, 2013 8:57 AM To: Lívio Cipriano Cc: R help Subject: Re: [R] Retrieving Labels from vars/cols I'm not sure

Re: [R] Retrieving Labels from vars/cols

2013-06-19 Thread Adams, Jean
I'm not sure what you mean by the $variables.label property. Are you just looking for the column names? If your data frame is called "df", try names(df) Jean On Tue, Jun 18, 2013 at 2:16 PM, Lívio Cipriano wrote: > Hi, > > How can I read/retrieve the Labels strings of the $variables.label

[R] Retrieving Labels from vars/cols

2013-06-18 Thread Lívio Cipriano
Hi, How can I read/retrieve the Labels strings of the $variables.label proprety of a data Frame? Regards Lívio Cipriano __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

[R] Retrieving Labels from vars/cols

2013-06-18 Thread Lívio Cipriano
Hi, How can I read/retrieve the Labels strings of the $variables.label proprety of a data Frame? Regards Lívio Cipriano __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr