chunk | R Documentation |
Internal function 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 (default = NULL) |
by |
integer Interval to space sequence (default = 1) |
length.out |
integer Number of desired chunks, i.e. nrows of output matrix (default = NULL) |
2-column matrix of indices, each row representing a chunk
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.