[R] Another question, unfortunately. . . .(Installing "foreign"/trying to import/export SAS files)
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Mon Feb 9 16:28:50 CET 2004
"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
More information about the R-help
mailing list