num_cut_fct | R Documentation |
cut
to numericAfter using cut
, this function will convert the resulting
interval to numeric values, which correspond to the middle of the interval.
num_cut_fct(x, digits)
x |
factor, output from |
digits |
optional, use |
numeric vector of same length as x
x <- runif(10, 0, 3000)
x_cut <- cut(x, breaks = 0:3 * 1000)
num_cut_fct(x_cut)
# compare the differences:
data.frame(x, x_cut, num_cut_fct(x_cut))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.