Is there a function in the haven package that would allow to directly extract the names of a SAS dataset? Is there one to read the labels?
I could not find any hints from the read_sas function documentation. Right now, the best (but a bit inefficient) I can do is to read the file with read_sas and get the variables names with the names function and the labels with some mix of sapply and attr...
Any suggestion will be welcome.