Re: [R] Empty Set In a Set

2008-04-30 Thread Jason Q. McClintic
-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 [EMAIL PROTE

Re: [R] Empty Set In a Set

2008-04-30 Thread Duncan Murdoch
On 29/04/2008 9:39 PM, Jason Q. McClintic wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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 ret

Re: [R] Empty Set In a Set

2008-04-29 Thread jim holtman
Is this what you want: > ES <- 1 > ifelse(length(ES %in% c(1,2,3)) == 0, TRUE, ES %in% c(1,2,3)) [1] TRUE > ES <- 4 > ifelse(length(ES %in% c(1,2,3)) == 0, TRUE, ES %in% c(1,2,3)) [1] FALSE > ES <- NULL > ifelse(length(ES %in% c(1,2,3)) == 0, TRUE, ES %in% c(1,2,3)) [1] TRUE > On Tue, Apr 29, 20

[R] Empty Set In a Set

2008-04-29 Thread Jason Q. McClintic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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. Thank you in advance for your assistance. Sincerely, Jason Q. McClintic - -- Jason Q McClintic UST MB 1945 2115