I'm trying to import a SAS file using the haven package.
I've used this code, following the instructions from github:
#install haven package to read sas file
#read file from folder
marylandfund <- read_sas("maryland.sas7bdat", data_file, catalog_file=NULL, encoding=NULL, catalog_encoding=encoding, col_select=NULL, n_max=Inf, cols_only = "DEPRECATED")
and I got this error:
Error in read_sas("maryland.sas7bdat", data_file, catalog_file = NULL, :
unused arguments (data_file, col_select = NULL, n_max = Inf)
What does this mean? I'm new to R and statistical software so I can't quite figure it out on my own. Thank you!