h2o.round: Round doubles/floats to the given number of decimal places.

View source: R/frame.R

h2o.roundR Documentation

Round doubles/floats to the given number of decimal places.

Description

Round doubles/floats to the given number of decimal places.

Usage

h2o.round(x, digits = 0)

round(x, digits = 0)

Arguments

x

An H2OFrame object.

digits

Number of decimal places to round doubles/floats. Rounding to a negative number of decimal places is

See Also

Round for the base R implementation, round().

Examples

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

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/coxph_test/heart.csv"
heart <- h2o.importFile(f)

h2o.round(heart["age"], digits = 3)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.