hdf5.dataset {rhdf5}R Documentation

HDF5 Dataset

Description

In the HDF5 hierarchy there are files, groups and datasets. Files contain groups which contain datasets. The datasets are the actual data the other two levels are organizational.

Usage

hdf5.dataset(group, name, data=NULL, dims=NULL, type=NULL,
                         create=hdf5.default.properties)
get.points(d, x, y)

Arguments

group An instance of hdf5.file or hdf5.group.
name A character vector naming the new group.
data Data to store in the HDF5 dataset.
dims The dimensions of the dataset to create.
type The type of dataset to create. See link{hdf5.datatypes} for details.
create An HDF5 property list.
d An instance of hdf5.dataset.
x The x-positions of the points to select.
y The y-positions of the points to select.

Details

Datasets are the actual data storage units in HDF5. This function allows users to create new data objects. The user can either supply data to be stored as an HDF5 dataset. In this case the dims and type arguments must not be specified. The type and create arguments are ignored. If dims is specified then data must not be. The default type is texttt{double}.

get.points returns the points specified.

Value

An object of class hdf5.dataset which contains the data, or is of the specified type and dimensions is created within the HDF5 group or file group. The object itself is returned invisibly. If it is not assigned it can still be retrieved from group.

Author(s)

R. Gentleman and B. Ellis

See Also

hdf5.file, hdf5.file

Examples

  mad <- hdf5.open("MarrayXX.h5")
  c1 <- hdf5.group(mad,"chip1")
  hdf5.dataset(c1, "rnorm", rnorm(1000))
  c1
  length(c1$rnorm)
  c1$rnorm
  hdf5.dataset(mad, "x2", dims=c(10,10), type="ushort")
  mad$x2
  mad
  unlink("MarrayXX.h5")

[Package rhdf5 version 1.4.0 Index]