shared.deepcopy {bigmemory}R Documentation

Produces a physical copy of a “big.matrix” (shared or not) in shared memory.

Description

This is needed to make a duplicate of a big.matrix in shared memory. Traditional R syntax would only copy the R object (the pointer to the big.matrix rather than the big.matrix itself).

Usage

shared.deepcopy(x)

Arguments

x a big.matrix.

Details

This is needed to make a duplicate of a big.matrix, because traditional R syntax would only copy the R object (the pointer to the big.matrix rather than the big.matrix itself).

Value

a big.matrix, in shared memory.

Author(s)

John W. Emerson and Michael J. Kane

See Also

big.matrix

Examples

x <- as.big.matrix(matrix(1:30, 10, 3))
y <- shared.deepcopy(x)
x
y
head(x)
head(y)
is.shared(y)

[Package bigmemory version 2.3 Index]