Skip to content
Prev 161924 / 398500 Next

logical operators in 'subset'

Dear All, 

Am I correct in believing that logical operators such as && and ||
cannot be used as part of 
a 'subset' logical expression?

Example:
dimnames=list(c("r1","r2","r3"),c("c1","c2","c3"))))
c1 c2 c3
r1  1  4  7
r2  2  5  8
r3  3  6  9
c1 c2 c3
r2  2  5  8
r3  3  6  9
c1 c2 c3
r3  3  6  9

However,
[1] c1 c2 c3
<0 rows> (or 0-length row.names)

RR