as.hdf5.dataset {rhdf5}R Documentation

Create an HDF5 dataset from an R array or vector.

Description

An R array or vector will be transformed into an HDF5 object.

Usage

as.hdf5.dataset(file, value, name)

Arguments

file An object of type hdf5.file or hdf5.group that will contain the dataset.
value The R array or vector to be turned in to an HDF5 dataset.
name A string giving the name that the new dataset will have in file.

Details

The R object is turned in to an HDF5 dataset of the corresponding type. It is stored in the file or group specified in the file argument.

Value

An object of class hdf5.dataset is returned.

Author(s)

R. Gentleman

See Also

hdf5.dataset

Examples

## Not run: 
   mad <- hdf5.open("microarray.h5")
   x <- matrix(rnorm(100), nc=2)
   j <- as.hdf5.dataset(mad, x)
## End(Not run)

[Package rhdf5 version 1.4.0 Index]