Description Usage Arguments Value Examples

View source: R/utility_functions.R

Partitions a vector x into n groups of roughly equal size.

1 | ```
partition(x, n)
``` |

`x` |
Vector to partition. |

`n` |
Number of (roughly) equally-sized groups |

A list of partitions of the vector x.

1 2 | ```
x <- 1:10
partition( x, 3 )
``` |

TSDT documentation built on May 2, 2019, 6:40 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.