Description Usage Arguments Functions Examples
Write a dataset or attribute to an HDF file.
1 2 3 4 5 6 7 8 9 10 11 | 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)
|
dataset |
The dataset to write. The object must be coercible to an array. |
path |
The location within the HDF file to write the dataset or attribute(s). |
include.attributes |
If |
overwrite |
If |
parallel |
Use parallel processing functionality. |
attribute |
The attribute to write. |
attributes |
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.