[R] x[x > y] and more conditions

Christian Schulz christian.schulz at questico.de
Tue Nov 18 11:17:45 CET 2003


...and  i'm getting all cases which
are true for above condition and get the information
how many cases match, too. The vector's are in a attached data.frame.

FAKTOR30[FAKTOR30 > 0.234]
...................
[102193] 0.352 0.352 0.288 0.354 0.352 0.358 0.352 0.352 0.311 0.370 0.352
0.336
[102205] 0.352 0.274 0.352 0.405 0.354 0.352 0.352 0.352 0.352 0.352 0.352
0.340
[102217] 0.352 0.352


But if i use more than one "index" term
UMSATZ30[UMSATZ30 > 10] && FAKTOR30[FAKTOR30 = 0.234]

[1] NA

I get  true, false  or NA  and the latter i think this mean there isn't any
case with this condition!?
But, how can i check cases with more than one condition like the single
example, i trial some but getting no success?

Many thanks for help,
christian




More information about the R-help mailing list