\donttest{
tmp <- tempfile(fileext = ".h5")
bdCreate_hdf5_matrix(tmp, matrix(rnorm(20), 4, 5), "inp", "A",
overwriteFile = FALSE)
bdCreate_hdf5_matrix(tmp, matrix(rnorm(20), 4, 5), "inp", "B",
overwriteFile = FALSE)
hdf5_apply(tmp, group = "inp", datasets = c("A", "B"),
func = "CrossProd", outgroup = "out")
res_A <- hdf5_matrix(tmp, "out/A")
dim(res_A) # 5 x 5
close(res_A)
unlink(tmp)
}hdf5_apply
hdf5_apply
AGGREGATIONS
1 Description
Applies one of several supported operations to a list of datasets stored in an HDF5 group. Delegates to bdapply_Function_hdf5().
2 Usage
hdf5_apply(...)3 Arguments
| Parameter | Description |
|---|---|
filename |
Path to the HDF5 file. |
group |
Group path containing . |
datasets |
Character vector of dataset names to process. |
func |
Character. Operation to apply (see Details). |
outgroup |
Character. Output group path for results. |
b_group |
Character or . Group of B datasets. |
b_datasets |
Character vector or . Names of B datasets. |
overwrite |
Logical. Overwrite existing output datasets. |
transp_dataset |
Logical. Transpose A datasets before operation. |
transp_bdataset |
Logical. Transpose B datasets before operation. |
fullMatrix |
Logical. Return full matrix (not triangular). |
byrows |
Logical. Apply by rows (for normalize/sdmean). |
threads |
Integer or . OpenMP threads. |
4 Value
Invisibly . Results written to . Open them with .
5 Details
Supported values for func: