h2o.round | R Documentation |
Round doubles/floats to the given number of decimal places.
h2o.round(x, digits = 0)
round(x, digits = 0)
x |
An H2OFrame object. |
digits |
Number of decimal places to round doubles/floats. Rounding to a negative number of decimal places is |
Round
for the base R implementation, round()
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.