Re: [R] is member

2011-10-02 Thread Alaios
nly numbers) without the zeros!. How I can do that? B.R Alex From: William Dunlap Sent: Saturday, October 1, 2011 12:11 AM Subject: RE: [R] is member Someone already suggested that you use match(), which does what I think you want.  Read its help file for deta

Re: [R] is member

2011-09-30 Thread William Dunlap
tember 30, 2011 2:07 PM To: William Dunlap; R-help@r-project.org Subject: Re: [R] is member Thanks a lot! This works. Now I want to do the opposite let's say that I have one sequence for example check in image http://imageshack.us/photo/my-images/4/unleduso.png/ column A (this is a seq(1,113,4) a

Re: [R] is member

2011-09-30 Thread Alaios
seq (1,113,4). everything about the seq(1,113,4) is known and I want when I get one of the number of the sequence to say which is its order. How I can do that? B.R A;ex From: William Dunlap Sent: Friday, September 30, 2011 6:34 PM Subject: RE: [R] is member   is.el

Re: [R] is member

2011-09-30 Thread William Dunlap
is.element(myvector, seq(1,800,4)) or, if you like typing percent signs, myvector %in% seq(1,800,4) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Alaios > Sent: Fr

Re: [R] is member

2011-09-30 Thread Sarah Goslee
> 5 %in% seq(1,800,4) [1] TRUE > 4 %in% seq(1,800,4) [1] FALSE or > is.element(5, seq(1,800,4)) [1] TRUE > is.element(4, seq(1,800,4)) [1] FALSE Sarah On Fri, Sep 30, 2011 at 12:25 PM, Alaios wrote: > Dear all, > I have a vector with number that some of them are part of the > > seq(1,800,4).

Re: [R] is member

2011-09-30 Thread David Winsemius
On Sep 30, 2011, at 12:25 PM, Alaios wrote: Dear all, I have a vector with number that some of them are part of the seq(1,800,4). How can I check which of the numbers belong to the seq(1,800,4) LEt's say that is called myvector the vector with the numbers. Is there in R something like this