ragged_bin_by: ragged_bin_by

Description Usage Arguments Value

View source: R/utils.R

Description

divides range of 'by' into 'bins' intervals returns list length 'bins' elements of list are index numbers of 'vec' where values are in range of interval of 'by'

Usage

1
ragged_bin_by(vec, by = vec, bins = 10)

Arguments

vec

is a numeric vector of data

by

is a range of values to bin by

bins

is the number of bins to use

Value

a list length 'bins' of index numbers of 'vec' divided along 'by'


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.