chunk | R Documentation |
takes same input as seq (from, to, by, length.out) and outputs a 2 column matrix of indices corresponding to "chunks"
chunk(from, to = NULL, by = 1, length.out = NULL)
from |
integer where to begin sequence |
to |
integer to end sequence |
by |
interval to space sequence |
length.out |
number of desired chunks, i.e. nrows of output matrix |
2 column matrix of indices, each row representing chunk
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.