Skip to content
Prev 305042 / 398506 Next

Can I make spss.get reencode from Windows-1252?

Hello,

If all you need is the column labels, read.spss does return them as an 
attribute of the list/data.frame.
You can write an extractor function:

variable.labels <- function(x) attr(x, "variable.labels")

and then

dfr <- read.spss(file.choose(), reencode = 'Windows-1252', to.data.frame 
= TRUE)
variable.labels(dfr)

Hope this helps,

Rui Barradas
Em 08-09-2012 04:17, Dan Delaney escreveu: