A method for the summary
generic. Summarizes the columns of an H2O data frame or subset of
columns and rows using vector notation (e.g. dataset[row, col]).
h2o.summary(object, factors = 6L, exact_quantiles = FALSE, ...) # S3 method for H2OFrame summary(object, factors, exact_quantiles, ...)
object | An H2OFrame object. |
---|---|
factors | The number of factors to return in the summary. Default is the top 6. |
exact_quantiles | Compute exact quantiles or use approximation. Default is to use approximation. |
... | Further arguments passed to or from other methods. |
A table displaying the minimum, 1st quartile, median, mean, 3rd quartile and maximum for each numeric column, and the levels and category counts of the levels in each categorical column.
By default it uses approximated version of quantiles computation, however, user can modify this behavior by setting up exact_quantiles argument to true.
# NOT RUN { library(h2o) h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.importFile(path = prostate_path) summary(prostate) summary(prostate$GLEASON) summary(prostate[, 4:6]) summary(prostate, exact_quantiles = TRUE) # }