toolAddDimensions: Wrapper around magclass::add_dimension supporting more than...

View source: R/toolAddDimensions.R

toolAddDimensionsR Documentation

Wrapper around magclass::add_dimension supporting more than one value for the new dimension. For each value, the input magclass object is copied, extended by the new dimension and appended to the output.

Description

Wrapper around magclass::add_dimension supporting more than one value for the new dimension. For each value, the input magclass object is copied, extended by the new dimension and appended to the output.

Usage

toolAddDimensions(x, dimVals, dimName, dimCode)

Arguments

x

a magclass object

dimVals

list of values for the new dimension to be added

dimName

name of the new dimension

dimCode

dimension number of the new dimension (e.g. 3.1)

Value

the extended magclass object


pik-piam/mrremind documentation built on May 1, 2024, 2:12 a.m.