bin_by: bin by

Description Usage Arguments Value

View source: R/utils.R

Description

Divides a vector by length into bins, takes the sum of a corresponding variable.

Usage

1
bin_by(vec, var, bins = 10)

Arguments

vec

is the vector to divide by

var

is the variable to sum

bins

is the number of bins to divide into

Value

a plot and dataframe of mean 'var' per bin


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