hdf5.apply {rhdf5} | R Documentation |
HDF5 Group Apply
Description
Allows the user to iterate over a set of datasets within a group,
optionally selecting a subregion from each dataset that is passed to
the function specified by "fun."
Usage
hdf5.apply(X, REGION, FUN,...)
Arguments
X |
a group reference |
REGION |
a subset specification or set to NULL to pass the
dataset itself |
FUN |
The function to call on each returned value. By default it
is function(x) x |
... |
Additional arguments, currently unused |
See Also
hdf5.groups
Examples
mad <- hdf5.open("test.h5")
hdf5.dataset(mad, "test", matrix(rnorm(1000), nc=20))
hdf5.dataset(mad, "test2", rnorm(100))
hdf5.apply(mad, list(1,), mean)
hdf5.apply(mad, NULL, min)
unlink("test.h5")
[Package
rhdf5 version 1.4.0
Index]