Returns the column names of an H2OFrame
colnames(x, do.NULL = TRUE, prefix = "col")
x | An H2OFrame object. |
---|---|
do.NULL | logical. If FALSE and names are NULL, names are created. |
prefix | for created names. |
# NOT RUN { h2o.init() iris.hex <- as.h2o(iris) colnames(iris) # Returns "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species" # }