Sorry, I am completely new with using R Studio and have spent the better part of the morning trying to figure this out. I have imported an SPSS datafile into R Studio. All I want to do is export this to an excel file and retain the variable labels for each variable.
abc123 <- read_sav("S:/datafiles/abc123.sav")
Gdr R1 R2 R3
Gender White Black Asian