Learn R Programming

bigmemory (version 2.3)

deepcopy: Produces a physical copy of a ``big.matrix''

Description

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

Usage

deepcopy(x)

Arguments

Value

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).

See Also

big.matrix

Examples

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

Run the code above in your browser using DataLab