It works like a charm,thank you all for your help.
--- On Wed, 1/21/09, jim holtman <jholt...@gmail.com> wrote: > From: jim holtman <jholt...@gmail.com> > Subject: Re: [R] seq() > To: mazatlanmex...@yahoo.com > Cc: r-h...@stat.math.ethz.ch > Date: Wednesday, January 21, 2009, 9:40 AM > Is this what you want: > > > x <- seq(1, 52, 2) > > x > [1] 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 > 37 39 41 43 > 45 47 49 51 > > (x + 26) %% 52 > [1] 27 29 31 33 35 37 39 41 43 45 47 49 51 1 3 5 7 9 > 11 13 15 17 > 19 21 23 25 > > > > > On Wed, Jan 21, 2009 at 12:29 PM, Felipe Carrillo > <mazatlanmex...@yahoo.com> wrote: > > HI: > > Could someone help me with the seq function? I have a > range of values starting from 1 to 52 but I want seq to > start at 27 by=2, but when it reaches 51 start with with > number 1 to 25. is this possible. I can do the basics of > seq() but I can't figure how to do this one. This is how > I want my sequence to look like: > > 27 29 31 33 35 37 ............51 1 3 5 7 9 11 13 > ...........25 > > > > Felipe D. Carrillo > > Supervisory Fishery Biologist > > Department of the Interior > > US Fish & Wildlife Service > > California, USA > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, > reproducible code. > > > > > > -- > Jim Holtman > Cincinnati, OH > +1 513 646 9390 > > What is the problem that you are trying to solve? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.