Skip to content

Functions to count the number of cells/years/datasets/regions of an MAgPIE-object

Usage

ncells(x)

ndata(x)

nregions(x)

nyears(x)

Arguments

x

A MAgPIE-object

Value

value

The number of cells/years/datasets/regions of x

Functions

  • ndata(): count datasets

  • nregions(): count regions

  • nyears(): count years

Author

Jan Philipp Dietrich

Examples


a <- is.magpie(NULL)
ncells(a)
#> NULL
nyears(a)
#> NULL
ndata(a)
#> NULL
nregions(a)
#> NULL