Description Usage Arguments Value Examples

Splits a continuous variable into quantiles groups. Basically combines
`quantile`

and `cut`

into a single
function.

1 | ```
quant_groups(x, groups = 5, ...)
``` |

`x` |
Numeric vector. |

`groups` |
Numeric value indicating how many quantile groups should be created. |

`...` |
Further arguments to pass to |

Factor variable.

1 2 3 4 | ```
# Convert values from N(0, 1) into quintiles (i.e. 5 groups)
x <- rnorm(1000)
groups <- quant_groups(x, 5)
table(groups)
``` |

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.