![]() ![]() Loaded via a namespace (and not attached): grid stats graphics grDevices utils datasets methods base LC_NUMERIC=C LC_TIME=English_United States.1252 LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 Why does #3 but not #2 not work? How can I download and load the data using only R?Īs requested, here is the output of running sessionInfo(): R version 3.2.1 () Mydata <- read.xport("download_SXQ_F.XPT")Įrror in lookup.xport(file) : file not in SAS transfer formatģ.Manually downloading the dataset through point and click, and then loading from wd: mydata <- read.xport("SXQ_F.XPT") I've tried 3 methods:ġ.Loading it using the url directly in read.xport: library(foreign)Įrror in lookup.xport(file) : unable to open file: 'Invalid argument'Ģ.Using download.file first: download.file("", "download_SXQ_F.XPT") The specific dataset I'm interested in is SXQ_F.XPT. I am trying to download and load an SAS dataset (.XPT) from the website of the National Health and Nutrition Examination Survey ( ).
0 Comments
Leave a Reply. |