sfSimplifyLBResult

Description

Transform the list resulting from sfClusterApplyLB to vector or matrix, similar as apply.

Usage

1
sfSimplifyLBResult(resl, caseNames = NULL)

Arguments

resl
caseNames

list of column names, name corresponds to dimension name for columns, i.e as obtained from dimnames(X)[1]

Value

Depending on components (result of FUN)

scalar

vector

vector

matrix with cases in columns

matrix

each column corresponds to as.vector(matrix), i.e. stacked to one vector

list

list of lists. May transform to dataframe by: do.call(rbind, lapply(.res,data.frame)))

data.frame

list of data.frames

Author(s)

Thomas Wutzler

See Also

twSnowfall