Variable labels in the R package Haven with SPSS
The function does the trick.
sapply(with_haven, attr,"label")
As stated in read_spss
labels are stored as attributes of each column rather than attributes of the data.frame
. Try
lapply(with_haven, function(x) attributes(x)$label)