aux_splitVectorEqualPieces | R Documentation |
Splits a vector in pieces with defined length and a remainder. Useful when to split datasets by ID for plotting over several pages.
aux_splitVectorEqualPieces(x, n)
x |
Vector to be splitted |
n |
Number of elements per piece |
List with the split pieces
x <- 1:20 aux_splitVectorEqualPieces(x,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.