[R] extraction from data.frame

2009-10-04 Thread sabrina.michielin
Hi, I extracted from a data.frame (x) of 27 columns a smaller data.frame (x2) with 12 columns whit the following: x2=x[, c(BROVISINGVal, CHATVal, EMAILVal, ..., Piano.Tariffario)] Anyway I want to form x2 by extracting all the rows that assume any value for the first 11 columns but a

Re: [R] extraction from data.frame

2009-10-04 Thread David Winsemius
On Oct 4, 2009, at 12:09 PM, sabrina.michie...@alice.it wrote: Hi, I extracted from a data.frame (x) of 27 columns a smaller data.frame (x2) with 12 columns whit the following: x2=x[, c(BROVISINGVal, CHATVal, EMAILVal, ..., Piano.Tariffario)] Something like this (untested): x2=x[