Get base unit of a variable of a StoX dataType

getBaseUnit(
  dataType,
  variableName,
  element = c("unit", "quantity"),
  list.out = FALSE
)

Arguments

dataType

The name of a StoX DataTypes.

variableName

The variable name to get base units from.

element

The element to get, one of "unit" and "quantity".

list.out

Logical: If TRUE return both elements in a list.