I\'m trying to access the variable labels (this is the description of the variable) from an SPSS por file with the haven package. I can do it just fine with the foreign pack
As stated in read_spss labels are stored as attributes of each column rather than attributes of the data.frame. Try
read_spss
data.frame
lapply(with_haven, function(x) attributes(x)$label)
The function does the trick.
sapply(with_haven, attr,"label")