Divides the range of the H2O data into intervals and codes the values according to which interval they fall in. The leftmost interval corresponds to the level one, the next is level two, etc.
Usage
h2o.cut(
x,
breaks,
labels = NULL,
include.lowest = FALSE,
right = TRUE,
dig.lab = 3,
...
)
# S3 method for class 'H2OFrame'
cut(
x,
breaks,
labels = NULL,
include.lowest = FALSE,
right = TRUE,
dig.lab = 3,
...
)Arguments
- x
An H2OFrame object with a single numeric column.
- breaks
A numeric vector of two or more unique cut points.
- labels
Labels for the levels of the resulting category. By default, labels are constructed sing "(a,b]" interval notation.
- include.lowest
Logical, indicationg if an 'x[i]' equal to the lowest (or highest, forright = FALSE'breaks' value should be included- right
Logical, indicating if the intervals should be closed on the right (opened on the left) or vice versa.- dig.lab
Integer which is used when labels are not given, determines the number of digits used in formatting the break numbers.
- ...
Further arguments passed to or from other methods.