Learn R Programming

h2o (version 2.8.4.4)

h2o.downloadCSV: Download H2O Data to Disk

Description

Download a H2O dataset to a CSV file on local disk.

Usage

h2o.downloadCSV(data, filename, quiet = FALSE)

Arguments

data
An H2OParsedData object to be downloaded.
filename
A character string indicating the name that the CSV file should be saved to.
quiet
(Optional) If TRUE, suppress status messages and progress bar.

Details

WARNING: Files located on the H2O server may be very large! Make sure you have enough hard drive space to accommodate the entire file.

See Also

H2OParsedData

Examples

Run this code
library(h2o)
localH2O = h2o.init()
irisPath = system.file("extdata", "iris_wheader.csv", package = "h2o")
iris.hex = h2o.importFile(localH2O, path = irisPath)

myFile = paste(getwd(), "my_iris_file.csv", sep = .Platform$file.sep)
h2o.downloadCSV(iris.hex, myFile)
file.info(myFile)
file.remove(myFile)

Run the code above in your browser using DataLab