Learn R Programming

h2o (version 3.40.0.4)

colnames: Returns the column names of an H2OFrame

Description

Returns the column names of an H2OFrame

Usage

colnames(x, do.NULL = TRUE, prefix = "col")

Arguments

x

An H2OFrame object.

do.NULL

logical. If FALSE and names are NULL, names are created.

prefix

for created names.

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()

iris_hf <- as.h2o(iris)
colnames(iris_hf)  # Returns "Sepal.Length" "Sepal.Width"  "Petal.Length" "Petal.Width"  "Species"
}

Run the code above in your browser using DataLab