Re: [R] ugly loop

From: Bill Simpson <William.Simpson_at_drdc-rddc.gc.ca>
Date: Fri 22 Apr 2005 - 23:49:10 EST


On Fri, 22 Apr 2005, Marc Schwartz wrote:
> Thus, I just need to use t(ver) instead of ver:
>
> > x <- pt$x[t(ver)]
> > y <- pt$y[t(ver)]
> > z <- pt$z[t(ver)]

> That should do it?

Yep!!

Thanks very much Marc and others who suggested this.

Cheers
Bill



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 23 00:04:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:22 EST