Skip to contents

Write an attribute to an HDF5 file, group, or dataset

Usage

WriteAttribute(
  h5,
  name,
  robj,
  dtype = GuessDType(x = robj),
  scalar = length(x = robj) == 1,
  overwrite = FALSE,
  ...
)

Arguments

h5

An HDF5 file, group, or dataset

name

Name to store attribute as

robj

An object to write out

dtype

Data type of attribute

scalar

Is this a scalar or simple (vectorized) attribute?

overwrite

Overwrite the attribute if it already exists

...

Extra paramters passed to H5S$new

Value

Invisibly returns NULL