Re: [R] filling values in a vector using smaller vector

2008-12-24 Thread Milton Huang
ist] <- values x } Thanks again. You made my day. Have a happy holiday season. -milton == On Wednesday 24 December 2008 1:46 am, you wrote: > Wacek Kusnierczyk wrote: > > Milton Huang wrote: > >>> Dear list members: > >>> > >>>

[R] filling values in a vector using smaller vector

2008-12-24 Thread Milton Huang
Dear list members: I am looking for an elegant (or efficient) way to accomplish the following: take a large boolean vector and fill the TRUE values with the values from a smaller boolean vector that has a length that is the number of TRUE values of the large vector. Example: large<- c(FALSE,