Learn R Programming

houba (version 0.1.0)

copy: Copy memory mapped object

Description

Copy memory mapped object

Usage

copy(x, filename)

# S4 method for mvector copy(x, filename)

# S4 method for mmatrix copy(x, filename)

# S4 method for marray copy(x, filename)

Value

A memory mapped object.

Arguments

x

a memory mapped object

filename

(optional) a file name for the new object

Details

Creates a new memory mapped object, identical to x.

Examples

Run this code
a <- as.mvector(1:4)
b <- copy(a)
a
b

Run the code above in your browser using DataLab