[R] is member

William Dunlap wdunlap at tibco.com
Fri Sep 30 18:34:47 CEST 2011

  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-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Alaios
> Sent: Friday, September 30, 2011 9:26 AM
> To: R-help at r-project.org
> Subject: [R] is member
> 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?
> is.member(myvector,seq(1,800,4))
> I would like to thank you in advance for your help
> B.R
> Alex
> 	[[alternative HTML version deleted]]

More information about the R-help mailing list