Skip to content
Prev 163396 / 398500 Next

how to select cases based on value of one or more variables

It is.

For example, if you have a variable stored as a vector named "x", and 
another variable stored as aa vector named "y", you can select cases 
of y where x is greater than 3 by using

   y[x>3]

However, you're going to have to provide more information in order to 
get a better answer than that (see the posting guide, link included 
with every post to r-help). In particular, I'm guessing that the 
answer you really want looks somewhat different than my example -- 
but this depends on the exact structure of what read.spss() produces.

I'd also suggest reading some of the documentation available from the 
R website (CRAN), notably, "An Introduction to R".

-Don
At 9:36 PM +0100 11/30/08, Simone Gabbriellini wrote: