Re: [R] Empty Set In a Set

From: Jason Q. McClintic <jqmcclintic_at_stthomas.edu>
Date: Wed, 30 Apr 2008 09:36:25 -0500

-----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-----



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. Received on Wed 30 Apr 2008 - 15:09:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 Apr 2008 - 16:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive