chunk | R Documentation |
The ranges have a maximum length.
chunk(x, ...) ## S3 method for class 'lvec' chunk(x, chunk_size = 1e+06, ...) ## Default S3 method: chunk(x, chunk_size = NULL, ...) ## S3 method for class 'data.frame' chunk(x, chunk_size = NULL, ...)
x |
an object for which the index ranges should be calculated. Should
support the |
... |
ignored; used to pass additional arguments to other methods. |
chunk_size |
a numeric vector of length 1 giving the maximum length of the chunks. |
The default chunk size can be changes by setting the option 'chunk_size', ('options(chunk_size = <new default chunk size>)').
Implementations of chunk for data frames and regular vectors are provided to make it easier to write code that works on both lvec objects and regular R objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.