View source: R/S3_operations.R
| apply_function | R Documentation |
Generic function that applies one of BigDataStatMeth's algebraic or
statistical functions to a list of datasets in the same HDF5 group as
x.
Valid func values: "QR", "CrossProd",
"tCrossProd", "invChol", "blockmult",
"CrossProd_double", "tCrossProd_double", "solve",
"normalize", "sdmean", "descChol".
apply_function(x, ...)
x |
An |
... |
Additional arguments forwarded to the method. |
Named list with elements filename, out_group,
func, datasets.
hdf5_apply
fn <- tempfile(fileext = ".h5")
# Create two datasets in the same group
hdf5_create_matrix(fn, "data/A", data = matrix(rnorm(50), 5, 10))
hdf5_create_matrix(fn, "data/B", data = matrix(rnorm(50), 5, 10))
# Apply CrossProd to all datasets in the group
X <- hdf5_matrix(fn, "data/A")
res <- apply_function(X, func = "CrossProd", out_group = "RESULTS")
hdf5_close_all()
unlink(fn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.