matrix2h5 {signatureSearch} | R Documentation |
Function writes matrix object to an HDF5 file.
matrix2h5(matrix, h5file, overwrite = TRUE)
matrix |
matrix to be written to HDF5 file, row and column name slots need to be populated |
h5file |
character(1), path to the hdf5 destination file |
overwrite |
TRUE or FALSE, whether to overwrite or append matrix to an existing 'h5file' |
HDF5 file containing exported matrix
mat <- matrix(rnorm(12), nrow=3, dimnames=list( paste0("r",1:3), paste0("c",1:4))) h5file <- tempfile(fileext=".h5") matrix2h5(matrix=mat, h5file=h5file, overwrite=TRUE)