[R] Retrieving Labels from vars/cols

Lívio Cipriano lcmail4lists at gmail.com
Wed Jun 19 22:41:53 CEST 2013

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:


I used

attr(test,"variable.labels")[i][1]) and it worked.


Lívio Cipriano

More information about the R-help mailing list