h2o.importFolder(path, pattern = "", destination_frame = "", parse = TRUE, header = NA, sep = "", col.names = NULL, col.types = NULL, na.strings = NULL)
h2o.importURL(path, destination_frame = "", parse = TRUE, header = NA, sep = "", col.names = NULL, na.strings = NULL)
h2o.importHDFS(path, pattern = "", destination_frame = "", parse = TRUE, header = NA, sep = "", col.names = NULL, na.strings = NULL)
h2o.uploadFile(path, destination_frame = "", parse = TRUE, header = NA, sep = "", col.names = NULL, col.types = NULL, na.strings = NULL, progressBar = FALSE, parse_type = NULL)
sep = ""
, the
parser will automatically detect the separator.h2o.uploadFile
, if the given path is relative, then it will be relative to the
start location of the H2O instance. Additionally, the file must be on the same machine as the H2O
cloud. In the case of h2o.uploadFile
, a relative path will resolve relative to the working
directory of the current R session.Import an entire directory of files. If the given path is relative, then it will be relative to the start location of the H2O instance. The default behavior is to pass-through to the parse phase automatically.
h2o.importURL
and h2o.importHDFS
are both deprecated functions. Instead, use
h2o.importFile
h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
prosPath = system.file("extdata", "prostate.csv", package = "h2o")
prostate.hex = h2o.uploadFile(path = prosPath, destination_frame = "prostate.hex")
class(prostate.hex)
summary(prostate.hex)
Run the code above in your browser using DataLab