Learn R Programming

houba (version 0.1.0)

as.array.marray: Converting memory-mapped objects to R objects

Description

Converting memory-mapped objects to R objects

Usage

# S3 method for marray
as.array(x, ...)

# S3 method for marray as.vector(x, mode = "any")

# S3 method for mmatrix as.matrix(x, ...)

# S3 method for mmatrix as.vector(x, mode = "any")

# S3 method for mvector as.vector(x, mode = "any")

Value

an array

Arguments

x

memory-mapped object to convert

...

extra parameters (ignored)

mode

the mode oh the created vector

Examples

Run this code
a <- array( 1:24, c(2,3,4) )
A <- as.marray(a)
all(as.array(A) == a)
as.vector(A)

Run the code above in your browser using DataLab