Description Usage Arguments Value Author(s) Examples
View source: R/discretization.R
Discretizes a continuous random variable into buckets (ranges). Each range is delimited by an exclusive minimum value and an inclusive maximum value.
1 2 3 4 5 6 7 |
data |
a vector with numeric data |
openEndRanges |
boolean default True. If true, then the minimum value
of the first range will be set to @seealso |
numRanges |
integer default NA. If NULL, then the amount of ranges (buckets) depends on the amount of data given. A minimum of two buckets is used then, and a maximum of ceiling(log2(length(data))). |
exclMinVal |
numeric default NULL. Used to delimit the lower bound of the given data. If not given, then no value is excluded, as the exclusive lower bound becomes the minimum of the given data minus an epsilon of 1e-15. |
inclMaxVal |
numeric default NULL. Used to delimit the upper bound of the given data. If not given, then the upper inclusive bound is the max of the given data. |
List a List of vectors, where each vector has two values, the first being the exclusive minimum value of the range, and the second being the inclusive maximum value of the range. The list will be as long as the number of buckets requested.
Sebastian Hönel sebastian.honel@lnu.se
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.