This is a helper function that returns a list of all of the indices within each chunk.
1 | chunkIndices(chunks)
|
1 2 3 4 5 | len<- nrow(mtcars)
chunks <- calculateChunks(len,10)%>%
chunkIndices()
mtcars[chunkIndices[[1]],]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.