[R] Odp: Manual recycling of vectors?
petr.pikal at precheza.cz
Fri Oct 19 16:25:19 CEST 2007
r-help-bounces at r-project.org napsal dne 19.10.2007 15:58:43:
> Sorry if this is already answered somewhere, but I could not find it.
> I have two vectors, x,y, of different length, and I want to recycle
> the smaller one (whichever one it is) until they have the same
> length. I was wondering if there is a anything better than something
gives you desired recycling in matrix form or
if you know that y is longer than x and all number are bigger than 0.
> or some variant of that using if to avoid the two calls to rep.
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help