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

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.

Value

A list of tables