bin_cont_var: bin_cont_var

View source: R/basic.R

bin_cont_varR Documentation

bin_cont_var

Description

Transform numeric vector into discrete bins

Usage

bin_cont_var(VAR, NUM_GROUPS, ROUND = 3, binNUM = FALSE)

Arguments

VAR

A numeric vector of values to bin

NUM_GROUPS

A positive integer for the number of bins

ROUND

A nonnegative integer for displaying bin labels through binned intervals

binNUM

Boolean set to TRUE to map bins to numbers. Otherwise, bins are characterized by intervals

Value

A character or integer vector of collapsed/binned values


pllittle/smarter documentation built on Feb. 27, 2025, 1:06 a.m.