deepcopy {bigmemory}R Documentation

Produces a physical copy of a “big.matrix”

Description

This is needed to make a duplicate of a big.matrix.

Usage

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.

Author(s)

John W. Emerson and Michael J. Kane

See Also

big.matrix

Examples

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

[Package bigmemory version 2.3 Index]