[R] Data import

Jan van der Laan rhelp at eoos.dds.nl
Mon Sep 26 11:29:42 CEST 2011


You can with the routines in the memisc library. You can open a file 
using spss.system.file and then import a subset using subset. Look in 
the help pages of spss.system.file for examples.

HTH

Jan


On 09/25/2011 11:56 PM, sassorauk wrote:
> Is it possible to import only certain variables from a SPSS file.
>
> I know that read.spss in the foreign library will bring the data into R but
> can I choose to important only chosen variables from the SPSS dataset to R?
>
> Thanks for your help.
>
> R
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Data-import-tp3842196p3842196.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



More information about the R-help mailing list