Class "hash_big_matrix": big matrix with a md5 hash reference
Source:R/hash_big.R
hash_big_matrix-class.Rd
hash_big_matrix
class is a modified class from bigmemory::big.matrix-class()
. Its purpose is to
help users operate big matrices within hard disk in a reusable way, so that the large matrices do not consume
too much memory, and the matrices can be reused for the next time.
Comparing with bigmemory::big.matrix-class()
, the major enhancement of hash_big_matrix
class
is that the backing files are, by default, stored in a permanent place, with the md5 of the object as the file
name. With this explicit name, hash_big_matrix
objects can be easily reloaded into workspace every time.
Usage
as_hash_big_matrix(x, backingpath = "bp", silence = TRUE, ...)
attach_hash_big_matrix(x, backingpath = "bp")
Arguments
- x
A matrix, vector, or data.frame for
bigmemory::as.big.matrix()
.- backingpath, ...
Passed to
bigmemory::as.big.matrix()
.- silence
Suppress messages?