
Last chance! 50% off unlimited learning
Sale ends in
setHDF5DumpFile(file=paste0(tempfile(), ".h5"))
getHDF5DumpFile()
lsHDF5DumpFile()
setHDF5DumpName(name)
getHDF5DumpName()
h5ls
function in the rhdf5 package,
on which lsHDF5DumpFile
is based.
getHDF5DumpFile()
## Use setHDF5DumpFile() to change the current output HDF5 file.
## If the specified file exists, then it must be in HDF5 format or
## an error will be raised. If it doesn't exist, then it will be
## created.
#setHDF5DumpFile("path/to/some/HDF5/file")
lsHDF5DumpFile()
a <- array(1:600, c(150, 4))
h5a <- HDF5Dataset(a)
lsHDF5DumpFile()
A <- HDF5Array(h5a) # DelayedArray object
A
b <- array(runif(6000), c(4, 2, 150))
h5b <- HDF5Dataset(b)
lsHDF5DumpFile()
B <- HDF5Array(h5b) # DelayedArray object
B
C <- (log(2 * A + 0.88) - 5)^3 * t(drop(B[ , 1, ]))
C
HDF5Dataset(C) # realize C on disk
lsHDF5DumpFile()
## Matrix multiplication is not delayed:
P <- C %*% matrix(runif(20), nrow=4)
lsHDF5DumpFile()
Run the code above in your browser using DataLab