cut3 | R Documentation |
Divide numeric variable into bins
cut3(
x,
cuts,
m = 150,
g,
levels.mean = FALSE,
digits,
minmax = TRUE,
oneval = TRUE,
onlycuts = FALSE
)
x |
numeric vector to be binned |
cuts |
numeric values to cut |
m |
same use as |
g |
same use as |
levels.mean |
same value as |
digits |
same value as |
minmax |
same value as |
oneval |
same value as |
onlycuts |
same value as |
A numeric vector
This function was based on cut2
from the Hmisc package. Instead of returning factors it returns numeric values representating the mean of the bins
pkpdData = example.pkpdData()
sunique(cut3(pkpdData$wt, g = 10, levels.mean = TRUE))
lunique(cut3(pkpdData$wt, g = 10, levels.mean = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.