levapply | R Documentation |
Applies FUN locally to levels of x and returns vector of length() (eg can do a "local" order within levels)
levapply(x, by, FUN = "order")
x |
input vector of data |
by |
length(x) vector of categorical labels |
FUN |
function that takes a length k vector and outputs a length k vector, used for processing each "level" of by |
length(x) vector of outputs, the results of applying FUN to each "by" defined level of x
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.