h2o.importFolder(object, path, pattern = "", key = "", parse = TRUE, header,
header_with_hash, sep = "", col.names, parser_type="AUTO")
H2OClient
object containing the IP address and port of the server running H2O.sep = ""
, the parser will automatically detect the separator.H2OParsedData
object containing a single delimited line with the column names for the file.parse = TRUE
, the function returns an object of class H2OParsedData
. Otherwise, when parse = FALSE
, it returns an object of class H2ORawData
.H2OParsedData
object. The data files must all have the same number of columns, and the columns must be lined up in the same order, otherwise an error will be returned.WARNING: In H2O, import is lazy! Do not modify the data files on hard disk until after parsing is complete.
h2o.importFile, h2o.importHDFS, h2o.importURL, h2o.uploadFile
library(h2o)
localH2O = h2o.init()
myPath = system.file("extdata", "prostate_folder", package = "h2o")
prostate_all.hex = h2o.importFolder(localH2O, path = myPath)
class(prostate_all.hex)
summary(prostate_all.hex)
Run the code above in your browser using DataLab