Skip to content

what does this syntax mean?

2 messages · Liaw, Andy, ronggui

#
That's a call to the replacement function "split<-"(), which is defined as:
function (x, f, value) 
{
    ix <- split(seq(along = x), f)
    n <- length(value)
    j <- 0
    for (i in ix) {
        j <- j%%n + 1
        x[i] <- value[[j]]
    }
    x
}

Andy
#
thank you.

when i examined the ?split, i have figure out the answer.
still,thank you very much.and sorry for my igorance.


On Sun, 19 Jun 2005 09:41:38 -0400
"Liaw, Andy" <andy_liaw at merck.com> wrote: