[R] Manipulating the output from read.spss

Christian Schulz ozric at web.de
Mon Dec 16 22:25:03 CET 2002


..if i understand you correct that you
wan't only the 375 rows with no NA in
~ 750 columns use:

all.data  <- read.spss("c:/yourData.sav",use.value.label=F,to.data.frame=T)
all.validData <- na.omit(all.data)

christian

----- Original Message -----
From: <SMarkandsusan at aol.com>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, December 16, 2002 9:05 PM
Subject: [R] Manipulating the output from read.spss


> This seems like a problem that others may have run into before. I got a
> merged dataset from SPSS. It has ~750 columns X 3400 rows. Most of the
cell
> entries are NA. There are about 375 rows that contain observations on all
> variables and I want to extract this subset from the original list (of
> lists). I'm pretty sure I can do it programmatically in R but it will take
me
> a few hours to write and debug. Before I start down that road I thought
I'd
> ask if anyone had already tackled this particular type problem already.
> Thanks a lot,
> Mark Schultz
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list