magclass (version 4.107.0)

units<-.magpie: units

Description

units method for MAgPIE objects to update the unit of the object

Usage

# S3 method for magpie
units(x) <- value

Arguments

x

MAgPIE object

value

object of class units or character of length one coercible to class units via as_units

Value

MAgPIE object converted to given unit (if possible)

See Also

units