get_prop_table: Cut into bins and get proportions

View source: R/misc.R

get_prop_tableR Documentation

Cut into bins and get proportions

Description

Cuts a vector into a specified number of equal sized bins and calculations the proportion of datapoints in each bin. Returns a data.frame.

Usage

get_prop_table(x, breaks_ = 20)

Arguments

x

A numeric vector.

breaks_

The number of bins to use.

Examples

get_prop_table(iris$Sepal.Length)

Deleetdk/kirkegaard documentation built on June 8, 2025, 4:09 a.m.