[R] read.spss function

192 views
Skip to first unread message

niloo javan

unread,
Jun 25, 2012, 5:12:12 AM6/25/12
to r-h...@r-project.org
Hi dear all,
I am trying to import a dataset from SPSS into R (R x64 2.15.0).
I used both  
read.spss("D:/Untitled2.sav", use.value.labels = TRUE, to.data.frame = TRUE, max.value.labels = Inf,
trim.factor.names = FALSE,trim_values = TRUE, reencode = NA,
use.missings = to.data.frame)
&
read.spss("D:\\Untitled2.sav", to.data.frame = TRUE, stringsAsFactors = FALSE)
 
but the result is:
Error: could not find function "read.spss"
 
What should I do to import data set into R?
_________________
Best Regards


Niloofar.Javanrouh
MSc Of BioStatistics 
[[alternative HTML version deleted]]

Jim Holtman

unread,
Jun 25, 2012, 6:30:03 AM6/25/12
to niloo javan, r-h...@r-project.org
you have to load the 'foriegn' package first.

Sent from my iPad
> ______________________________________________
> R-h...@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-h...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

peter dalgaard

unread,
Jun 25, 2012, 5:46:37 PM6/25/12
to Jim Holtman, r-h...@r-project.org, niloo javan

On Jun 25, 2012, at 12:30 , Jim Holtman wrote:

> you have to load the 'foriegn' package first.
>

'foreign' works better

> Sent from my iPad

...with spellcheck disabled, it seems ;-)

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk Priv: PDa...@gmail.com
Reply all
Reply to author
Forward
0 new messages