read.spss function
you have to load the 'foriegn' package first. Sent from my iPad
On Jun 25, 2012, at 5:12, niloo javan <niloo_javan at yahoo.com> wrote:
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]] ______________________________________________ R-help at 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.