h2o.trunc: Truncate values in x toward 0

View source: R/frame.R

h2o.truncR Documentation

Truncate values in x toward 0

Description

trunc takes a single numeric argument x and returns a numeric vector containing the integers formed by truncating the values in x toward 0.

Usage

h2o.trunc(x)

Arguments

x

An H2OFrame object.

See Also

Round for the base R implementation, trunc().

Examples

## Not run: 
library(h2o)
h2o.init()

frame <- h2o.createFrame(rows = 6, cols = 2,
                         categorical_fraction = 0.0, 
                         missing_fraction = 0.7, 
                         seed = 123)
h2o.trunc(frame["C1"])

## End(Not run)

h2o documentation built on Aug. 9, 2023, 9:06 a.m.