Shoultz, Gerald
2004-Feb-09 14:38 UTC
[R] Another question, unfortunately. . . .(Installing "foreign"/trying to import/export SAS files)
I have downloaded R--no problem there. Unfortunately, I have run into a second problem. I am trying to use read.ssd and then read.xport (to get a SAS data set). I have imported the package "foreign" according to instructions ( options(CRAN="http://cran.us.r-project.org/") and install.packages("foreign") ), but when I do so and then use either read.ssd or read.xport I get the message 'couldn't find function . . .'. Obviously these two directions are not getting the file installed properly. Is there something I have overlooked somewhere? Please advise. Thanks! Gerald [[alternative HTML version deleted]]
Peter Dalgaard
2004-Feb-09 15:28 UTC
[R] Another question, unfortunately. . . .(Installing "foreign"/trying to import/export SAS files)
"Shoultz, Gerald" <bjz9 at cdc.gov> writes:> I have downloaded R--no problem there. Unfortunately, I have run into a > second problem. > > I am trying to use read.ssd and then read.xport (to get a SAS data set). > I have imported the package "foreign" according to instructions ( > options(CRAN="http://cran.us.r-project.org/") and > install.packages("foreign") ), but when I do so and then use either > read.ssd or read.xport I get the message 'couldn't find function . . .'. > Obviously these two directions are not getting the file installed > properly. Is there something I have overlooked somewhere? Please advise.I suspect you forgot to do library(foreign) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Reasonably Related Threads
- Another question, unfortunately. . . .(Installing "foreig n"/trying to import/export SAS files)
- Importing a SAS file to R: Alas, STILL more problems--has anyone gotten this message before, and why
- Part II Re: read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)
- SAS transport files and the foreign package
- reading version 9 SAS datasets in R