Round doubles/floats to the given number of significant digits.
h2o.signif(x, digits = 6) signif(x, digits = 6)
x | An H2OFrame object. |
---|---|
digits | Number of significant digits to round doubles/floats. |
Round
for the base R implementation, signif()
.
if (FALSE) { library(h2o) h2o.init() f <- "http://s3.amazonaws.com/h2o-public-test-data/smalldata/coxph_test/heart.csv" heart <- h2o.importFile(f) h2o.signif(heart["age"], digits = 3) }