library(haven)
cprot_file <- "ds.xpt"
csv_file <- "ds.csv"
cprot_data <- read_xpt(cprot_file)
write.csv(cprot_data, file = csv_file, row.names = FALSE)
It looks, from the Error message, that you may have a typo somewhere: the file name there seems to be ds.xpt
not dps.xpt.
my bad i type the wrong file name while posting here.
Are you still having the problem?
yes
i have been searching but couldn't find a solution
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.