Hi, I downloaded this CHS 2002 dataset ( Community Health Survey Public Use Data - NYC Health
from SAS to R with the following code.
chs2002_public_1_ <- read_sas("C:/Users/prend/Downloads/chs2002_public (1).sas7bdat",
This code worked. However, I have been unable to remove columns from this dataset and I have tried various commands. I would like the following variables: mood1, mood2, mood3, mood4, mood5, mood6, sex, cid, newrace, wt1, employment, education, agegroup, incomegroup, uhf42pov, strata, neighpovgroup4_2000.
Ideally, I would like to export this dataset from columns in R to Excel. I would appreciate any of your help as I am a beginner in R.