hql_write.Rd
Write a dataset or attribute to an HDF file.
hql_write_dataset(
dataset,
path,
include.attributes = TRUE,
overwrite = FALSE,
parallel = FALSE
)
hql_write_attribute(attribute, path, overwrite = FALSE, parallel = FALSE)
hql_write_all_attributes(attributes, path, overwrite = FALSE, parallel = FALSE)
The dataset to write. The object must be coercible to an array.
The location within the HDF file to write the dataset or attribute(s).
If TRUE
, write the dataset attributes.
If TRUE
, overwrite existing dataset or attribute.
Use parallel processing functionality.
The attribute to write.
A list of attributes to write.
hql_write_dataset()
: Write a dataset to an HDF file.
hql_write_attribute()
: Write an attribute to an HDF file.
hql_write_all_attributes()
: Write multiple attributes to an HDF file.
if(hql_is_loaded()){
tf = tempfile(fileext = ".h5")
hql_create_file(tf)
hql_use_file(tf)
x = matrix(rnorm(100), nrow = 20)
hql_write_dataset(x, "dataset0")
hql_write_attribute("normal", "dataset0/dist")
y = month.name
attr(y, "abbreviation") = month.abb
hql_write_dataset(y, "group1/dataset1")
hql_close_file(tf)
}