h2o (version 3.2.0.3)

colnames<-,H2OFrame,H2OFrame-method: Returns Column Names for a Parsed H2O Data Object.

Description

Returns column names for an H2OFrame object.

Usage

## S3 method for class 'H2OFrame,H2OFrame':
colnames(x) <- value

## S3 method for class 'H2OFrame,character': colnames(x) <- value

## S3 method for class 'H2OFrame': names(x)

## S3 method for class 'H2OFrame': names(x) <- value

h2o.colnames(x)

h2o.names(x)

## S3 method for class 'H2OFrame': colnames(x)

Arguments

x
An H2OFrame object.
value
a character string to rename columns.

See Also

colnames for the base R method.

Examples

Run this code
library(h2o)
localH2O <- h2o.init()
irisPath <- system.file("extdata", "iris.csv", package="h2o")
iris.hex <- h2o.uploadFile(localH2O, path = irisPath)
summary(iris.hex)
colnames(iris.hex)

Run the code above in your browser using DataCamp Workspace