unlistToDataType: Function to flatten a list of output datat and add names from...

View source: R/Framework.R

unlistToDataTypeR Documentation

Function to flatten a list of output datat and add names from the levels of the list

Description

Function to flatten a list of output datat and add names from the levels of the list

Usage

unlistToDataType(
  processOutput,
  sep = "_",
  validOutputDataClasses = getRstoxFrameworkDefinitions("validOutputDataClasses"),
  nlevel = 2,
  keepNonStandardAttributes = FALSE
)

Arguments

processOutput

A list of StoX output data.

sep

The separator to use when constructing names for the final flat list, defaulted to underscore, but slash can also be useful e.g. for denoting groupes in a NetCDF4 file.

validOutputDataClasses

A vector of valid output data classes, indicating when to stop the unlisting.

nlevel

The number of levels to unlist through.

keepNonStandardAttributes

Logical: If TRUE, keep attributes other than the standard dim, names and dimnames.


StoXProject/RstoxFramework documentation built on Oct. 17, 2023, 1:24 p.m.