hdf5.file {rhdf5}R Documentation

HDF5 File Interface

Description

Files are pretty simple things in HDF5 and inherit most of their functionality from the HDF5 group interfaces. The only things unique to the file interface are the open/create/attach commands.

Usage

  hdf5.create(filename,mode="e", create=hdf5.default.properties,
access=hdf5.default.properties)   
  hdf5.open(filename,access=hdf5.default.properties)
  x[[i]]
  x[i]

Arguments

filename A filename.
mode "e" is for exclusive access (file creation will fail if the file exists). "t" is to truncate a preexisting file.
create A creation property list (don't touch it for the moment)
access An access property list (hands off!)
x An object of class hdf5.file
i The index of an object in x. This may be either numeric or character

Value

Returns a reference to the file. hdf5.create creates a new HDF5 file. It signals an error if the file already exists. hdf5.open opens an existing file or creates a file with the specified name.
The function [.hdf5.file throws an error. It is not clear how to implement such a function.

See Also

hdf5.groups, hdf5.create.group, hdf5.create.dataset

Examples

  mad <- hdf5.open("marrayXX.h5")
  hdf5.group(mad,"chip1")            # Make a new group inside of mad
  mad
  mad[[1]]

  mad[["chip1"]]                           
  unlink("marrayXX.h5")

[Package rhdf5 version 1.4.0 Index]