ch.binNumbers: A function bin a vector of numbers

View source: R/ch.binNumbers.r

ch.binNumbersR Documentation

A function bin a vector of numbers

Description

This function creates bins for a vector of numbers.

Usage

ch.binNumbers(data, numBins, centerLabels = TRUE)

Arguments

data

A numeric vector.

numBins

The number of bins you want the vector divided into.

centerLabels

A boolean, if TRUE will create labels that are the center of the bin. If FALSE, the labels will be the max number in the bin. DEFAULT = TRUE '

Value

A vector of bins that match to the rows of "data".

Examples

ch.binNumbers (rnorm(100, 10, 2), 10)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.