Learn R Programming

h2o (version 2.8.4.4)

sd: Standard Deviation of a Numeric Column of H2O Data

Description

Calculates the standard deviation of a H2OParsedData column of continuous real valued data.

Usage

sd(x, na.rm = FALSE)

Arguments

x
An H2OParsedData object containing numeric data.
na.rm
Logical value where FALSE does not remove NA's in the calculation and TRUE removes NA's in the calculation.

Value

  • Returns a vector of values of the standard deviations for the requested columns.

Examples

Run this code
library(h2o)
localH2O = h2o.init()
irisPath = system.file("extdata", "iris.csv", package="h2o")
iris.hex = h2o.importFile(localH2O, path = irisPath, key = "iris.hex")
sd(iris.hex[,4])

Run the code above in your browser using DataLab