as.double.hdf5.dataset {rhdf5}R Documentation

Coercion functions for HDF5 datasets.

Description

These should coerce an object of class hdf5.dataset to have the specified type. Coercion means generally the creation of a new object.

Usage

as.double.hdf5.dataset(x, ...)
as.single.hdf5.dataset(x, ...)

Arguments

x An object of class hdf5.dataset.
... Additional arguments.

Details

These functions are currently dangerous as they do nothing. The problem with implementing them is that coercion will generally mean duplication. Since these are large HDF5 objects duplication probably means the creation of new HDF5 datasets. That raises the question of where these should be created.

It would probably be useful to allow a location, or hdf5.file or hdf5.group argument to indicate where the copy should go.

Value

An object of the same dimensions as x but of the requested type. If x is already of the requested type then no action is taken.

Author(s)

R. Gentleman

See Also

hdf5.dataset

Examples

## No examples until we resolve the copying issue.

[Package rhdf5 version 1.4.0 Index]