as.numeric: Convert H2O Data to Numeric

Description Usage Arguments Examples

View source: R/frame.R

Description

Converts an H2O column into a numeric value column.

Usage

1

Arguments

x

a column from an H2OFrame data set.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(h2o)
h2o.init()
prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h2o.uploadFile(path = prostate_path)
prostate[, 2] <- as.factor (prostate[, 2])
prostate[, 2] <- as.numeric(prostate[, 2])

## End(Not run)

h2o documentation built on Oct. 10, 2021, 1:08 a.m.