chunk | R Documentation |
Function to chunk a vector into pieces of n length.
chunk(x, n)
x |
Vector or list to be chunked into pieces. |
n |
Length of chunk elements. |
List.
Harlan
https://stackoverflow.com/questions/3318333/split-a-vector-into-chunks-in-r
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.