Re: [R] union empty set with an element

2015-01-19 Thread Ragia Ibrahim
y thanks for replying Regards R. > Subject: Re: [R] union empty set with an element > From: b...@xs4all.nl > Date: Mon, 19 Jan 2015 16:00:28 +0100 > CC: r-help@r-project.org > To: ragi...@hotmail.com > > > > On 19-01-2015, at 15:51, Ragia Ibrahim wrote: > > > >

Re: [R] union empty set with an element

2015-01-19 Thread Berend Hasselman
,new element) Berend > Regards > R. > > Subject: Re: [R] union empty set with an element > > From: b...@xs4all.nl > > Date: Mon, 19 Jan 2015 16:00:28 +0100 > > CC: r-help@r-project.org > > To: ragi...@hotmail.com > > > > > > > On 19-01-2

Re: [R] union empty set with an element

2015-01-19 Thread Ragia Ibrahim
y thanks for replying Regards R. > Subject: Re: [R] union empty set with an element > From: b...@xs4all.nl > Date: Mon, 19 Jan 2015 16:00:28 +0100 > CC: r-help@r-project.org > To: ragi...@hotmail.com > > > > On 19-01-2015, at 15:51, Ragia Ibrahim wrote: > > > >

Re: [R] union empty set with an element

2015-01-19 Thread PIKAL Petr
Hi are you sure that you understand what union does? AFAIK union(set_name ,element) takes vector set_name, add all non duplicated values from element and returns concatenated vector. x<-1:10 y<-5:15 union(x,y) [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 x<-NULL union(x,y) [1] 5 6 7

Re: [R] union empty set with an element

2015-01-19 Thread Berend Hasselman
> On 19-01-2015, at 15:51, Ragia Ibrahim wrote: > > Hello, > I started the program with an empty set then I add and element when needed. > the problem how can I add the first element to the empty set > union(set_name ,element) > gives "subscript out of bounds “ > Which program did you start?