big.matrix
object based on external massive data file stored on disk that cannot be fullly loaded into memory. The data file must be a well-formated ASCII-file, and contains only one single type. Current version only supports double
type. Other restrictions about the data file are described in biglasso-package
. This function reads the massive data, and creates a big.matrix
object. By default, the
resulting big.matrix
is file-backed, and can be shared across processors or nodes of a cluster.setupX(filename, dir = getwd(), sep = ",", backingfile = paste0(unlist(strsplit(filename, split = "\\."))[1], ".bin"), descriptorfile = paste0(unlist(strsplit(filename, split = "\\."))[1], ".desc"), ...)
big.matrix
. The default is current working directory.big.matrix
. By default, its name is the same as filename
with the extension replaced by ".bin".big.matrix
. By default, its name is the same as filename
with the extension replaced by ".desc".read.big.matrix
.big.matrix
object corresponding to a file-backed big.matrix
. It's ready to be used as the design matrix X
in biglasso
and cv.biglasso
.
read.big.matrix
. See read.big.matrix
and the package bigmemory for more details.
biglasso
, cv.ncvreg
## see the example in "biglasso-package"
Run the code above in your browser using DataLab