[R] Empty Set In a Set
Jason Q. McClintic
jqmcclintic at stthomas.edu
Wed Apr 30 16:36:25 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Exactly what I needed.
Thanks to everyone who replied.
Sincerely,
Jason Q. McClintic
- --
MIDN 1/C Jason Q McClintic
Battalion Commander
Naval ROTC Battalion
University of Minnesota
UST MB 1945
2115 Summit Avenue
Saint Paul, MN 55105
jqmcclintic at stthomas.edu
mccl0219 at tc.umn.edu
(c) 763-442-3404
"It is insufficient to protect ourselves with laws, we must protect
ourselves with mathematics."--Bruce Schneier
Duncan Murdoch wrote:
| On 29/04/2008 9:39 PM, Jason Q. McClintic wrote:
| Dear List:
|
| I'm looking for a form of the empty set such that if ES is said
| representation,
|
| ~ ES %in% c(1,2,3)
|
| evaluates to TRUE.
|
|> %in% is a vector operator, checking each element of ES and returning a
|> vector result. It sounds like you want a subset test, i.e. to check
|> that all the results are TRUE,
|
|> all(ES %in% c(1,2,3))
|
|> which returns TRUE when ES is empty.
|
|> Duncan Murdoch
|
| Thank you in advance for your assistance.
|
| Sincerely,
|
| Jason Q. McClintic
|>
______________________________________________
R-help at r-project.org mailing list
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBSBiD6BMtGNvij6jtAQj+awf+KNXnXImjCi/x0V+pYZI+3A41Pf3yRbXo
oV99Px/ymBjGjwO4q3rKnMZmJFNTr906MPziAgTKxVQ1tboJyGpF/KAhk8ASQhO0
JqxlpzlEMwVnfZlORgo9vOjmNyl5nGL4G5X8Q1Ta9HqrvovZk2MJooP7jg37uEJy
CaSLmGQrFiqQjdrXpDEfkmThUYQaAcpAKQtJFo3BeC3qjFeF2h+fK9lrFEb2bNX+
jCKWIZbJSdFHsxR6rZrsExcyE6uv+WCgPMb0WW9LXYR03mGMmin6Sr/xcqW6jXKJ
dzrXc6RmFlsgfdqg/afTYwk9CVzIyWjq9/4FT9+Muj7VKClnCYlMOA==
=fxWV
-----END PGP SIGNATURE-----
More information about the R-help
mailing list