hql_write: Write HDF Dataset or Attribute

Description Usage Arguments Functions Examples

Description

Write a dataset or attribute to an HDF file.

Usage

 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)

Arguments

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 TRUE, write the dataset attributes.

overwrite

If TRUE, overwrite existing dataset or attribute.

parallel

Use parallel processing functionality.

attribute

The attribute to write.

attributes

A list of attributes to write.

Functions

Examples

 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)
}

hdfqlr documentation built on June 11, 2021, 9:08 a.m.

Related to hql_write in hdfqlr...