People,

What I mean is, is there an elegant way to do this:

This:

  !(1,2,3,4,5)

would give this:

  (2,3,4,5, 6,8,10, 12,15, 20)

and this:

  !(1,2,NA,4,5)

would give this:

  (2,4,5, 8,10, 20)

?

Thanks!

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to