A data container for LPJmL input and output. Container - because an
LPJmLData object is an environment in which the data array as well as the
meta data are stored after read_io().
The data array can be accessed via $data, the meta data via $meta.
The enclosing environment is locked and cannot be altered by any
other than the available modify methods to ensure its integrity and
validity.
Use base stats methods like print(), summary.LPJmLData() or
plot.LPJmLData() to get insights and export methods like as_tibble()
or as_raster() to export it into common working formats.
metaLPJmLMetaData object to store corresponding meta data.
dataarray containing the underlying data.
gridOptional LPJmLData object containing the underlying grid.
add_grid()Method to add a grid to an LPJmLData object.
See also add_grid
...See add_grid().
subset()Method to use dimension names of LPJmLData$data
array directly to subset each dimension to match the supplied vectors.
transform()Method to transform inner LPJmLData$data array
into another space or time format.
...See transform().
as_array()Method to coerce (convert) an LPJmLData object into an
array.
...See as_array().
as_tibble()Method to coerce (convert) an LPJmLData object into a
tibble (modern data.frame).
...See as_tibble().
as_raster()Method to coerce (convert) an LPJmLData object into a
raster or brick object that can be used
for any GIS-based raster operations.
...See as_raster().
as_terra()Method to coerce (convert) an LPJmLData object into a
rast object that can be used for any GIS-based raster
operations.
...See as_terra().
plot()Method to plot a time-series or raster map of an LPJmLData
object.
...See plot.LPJmLData().
dimnames()Method to get the dimnames (list) of the data array of an
LPJmLData object.
...See dimnames.LPJmLData().
summary()Method to get the summary of the data array of an
LPJmLData object.
new()!Internal method only to be used for package development!
LPJmLData$new(data, meta_data = NULL)