chop_equally | R Documentation |

`chop_equally()`

chops `x`

into groups with an equal number of elements.

chop_equally( x, groups, ..., labels = lbl_intervals(raw = TRUE), left = is.numeric(x), close_end = TRUE ) brk_equally(groups) tab_equally(x, groups, ..., left = is.numeric(x), close_end = TRUE)

`x` |
A vector. |

`groups` |
Number of groups. |

`...` |
Passed to |

`labels` |
A character vector of labels or a function to create labels. |

`left` |
Logical. Left-closed breaks? |

`close_end` |
Logical. Close last break at right? (If |

`chop_*`

functions return a `factor`

of the same length as `x`

.

`brk_*`

functions return a `function`

to create `breaks`

.

`tab_*`

functions return a contingency `table()`

.

Other chopping functions:
`chop_evenly()`

,
`chop_mean_sd()`

,
`chop_n()`

,
`chop_proportions()`

,
`chop_quantiles()`

,
`chop_width()`

,
`chop()`

,
`fillet()`

chop_equally(1:10, 5)

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.