h2o.signif: Round doubles/floats to the given number of significant...

View source: R/frame.R

h2o.signifR Documentation

Round doubles/floats to the given number of significant digits.

Description

Round doubles/floats to the given number of significant digits.

Usage

h2o.signif(x, digits = 6)

signif(x, digits = 6)

Arguments

x

An H2OFrame object.

digits

Number of significant digits to round doubles/floats.

See Also

Round for the base R implementation, signif().

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.signif(heart["age"], digits = 3)

## End(Not run)

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