ncells: Count elements

View source: R/ncells.R

ncellsR Documentation

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)

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(s)

Jan Philipp Dietrich

Examples


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

magclass documentation built on May 29, 2024, 6:20 a.m.