Re: [R] meaning of asymmetric on help page for intersect

2009-01-13 Thread Christos Hatzis
t Hannah; r-help@r-project.org > Subject: Re: [R] meaning of asymmetric on help page for intersect > > There is also a symmetric set difference = union(setdiff(x, > y), setdiff(y, x)) denoted x \Delta y > > -- David > > > -Original Message- > From: r-help-b

Re: [R] meaning of asymmetric on help page for intersect

2009-01-13 Thread Carlos J. Gil Bellosta
Hello, The symmetric set difference of A and B is the set of elements in A or B but not in A intersection B, i.e., ( (A U B) \ (A intersection B) ). The asymmetric set difference of A and B is the set of elements of A except those in B, i.e., (A \ B). Best regards, Carlos J. Gil Bellosta http:/

Re: [R] meaning of asymmetric on help page for intersect

2009-01-13 Thread Duncan Murdoch
On 1/13/2009 10:41 AM, Juliet Hannah wrote: Sorry if this is a silly question. What does asymmetric refer to from ?intersect, and are there any aspects of the result that may be different from expected (reason for exclamation point) ? There are two definitions for a set difference: the symmetr

Re: [R] meaning of asymmetric on help page for intersect

2009-01-13 Thread davidr
-project.org Subject: [R] meaning of asymmetric on help page for intersect Sorry if this is a silly question. What does asymmetric refer to from ?intersect, and are there any aspects of the result that may be different from expected (reason for exclamation point) ? As toy data, if needed, here are the

Re: [R] meaning of asymmetric on help page for intersect

2009-01-13 Thread Prof Brian Ripley
Because there is also a symmetric difference: see http://en.wikipedia.org/wiki/Symmetric_difference Sorry if this is a silly question. What does asymmetric refer to from ?intersect, and are there any aspects of the result that may be different from expected (reason for exclamation point) ? As

[R] meaning of asymmetric on help page for intersect

2009-01-13 Thread Juliet Hannah
Sorry if this is a silly question. What does asymmetric refer to from ?intersect, and are there any aspects of the result that may be different from expected (reason for exclamation point) ? As toy data, if needed, here are the examples from the help page. (x <- c(sort(sample(1:20, 9)),NA)) (y <-