Learn R Programming

magclass (version 6.0.9)

ncells: Count elements

Description

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

Usage

ncells(x)

ndata(x)

nregions(x)

nyears(x)

Value

value

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

Arguments

x

A MAgPIE-object

Functions

  • ndata: count datasets

  • nregions: count regions

  • nyears: count years

Author

Jan Philipp Dietrich

Examples

Run this code

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

Run the code above in your browser using DataLab