fm.conv.storeR Documentation

Convert the Storage of an Object.

Description

This function converts the storage of a FlashR vector/matrix. The storage can be memory or disks.

Usage

fm.conv.store(fm, in.mem, name = "")

Arguments

fm

a FlashR object.

in.mem

a logical value indicating whether to store the FlashR object in memory.

name

a string to indicate the name of the new FlashR object.

Details

If a user provides name and in.mem is TRUE, the vector/matrix will be kept on disks persistently. That is, even if a user exits from R, the vector/matrix will still be kept on disks.

Value

a new FlashR object with data stored in specified storage.

Examples

mat <- fm.runif.matrix(100, 10, in.mem=TRUE)
mat <- fm.conv.store(mat, FALSE)