| LPJmLData | R Documentation |
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
LPJmLData$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.
LPJmLData$subset(...)
...See subset.LPJmLData()
transform()Method to transform inner LPJmLData$data array
into another space or time format.
LPJmLData$transform(...)
...See transform().
as_array()Method to coerce (convert) an LPJmLData object into an
array.
LPJmLData$as_array(...)
...See as_array().
as_tibble()Method to coerce (convert) an LPJmLData object into a
tibble (modern data.frame).
LPJmLData$as_tibble(...)
...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.
LPJmLData$as_raster(...)
...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.
LPJmLData$as_terra(...)
...See as_terra().
plot()Method to plot a time-series or raster map of an LPJmLData
object.
LPJmLData$plot(...)
...See plot.LPJmLData().
length()Method to get the length of the data array of an LPJmLData
object.
See also length.
LPJmLData$length()
dim()Method to get the dimensions of the data array of an
LPJmLData object.
See also dim.
LPJmLData$dim()
dimnames()Method to get the dimnames (list) of the data array of an
LPJmLData object.
LPJmLData$dimnames(...)
...See dimnames.LPJmLData().
summary()Method to get the summary of the data array of an
LPJmLData object.
LPJmLData$summary(...)
...See [summary.LPJmLData()].
print()Method to print the LPJmLData object.
See also print.
LPJmLData$print()
.__set_data__()!Internal method only to be used for package development!
LPJmLData$.__set_data__(data)
dataData array.
.__set_grid__()!Internal method only to be used for package development!
LPJmLData$.__set_grid__(grid)
gridAn LPJmLData object holding grid coordinates.
new()!Internal method only to be used for package development!
LPJmLData$new(data, meta_data = NULL)
dataarray with LPJmL data.
meta_dataAn LPJmLMetaData object.
clone()The objects of this class are cloneable with this method.
LPJmLData$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.