as.array.DataFrameStack {gmGeostats}R Documentation

Convert a stacked data frame into an array

Description

Recast a DataFrameStack() into a named array.

Usage

## S3 method for class 'DataFrameStack'
as.array(x, ...)

Arguments

x

input DataFrameStack()

...

generic consistency

Value

the data recasted as an array with appropriate names.

Examples

ll = lapply(1:3, function(i) as.data.frame(matrix(1:10+(i-1)*10, ncol=2)))
dfs = DataFrameStack(ll, stackDimName="rep")
as.array(dfs)


[Package gmGeostats version 0.11.3 Index]