lastIter: lastIter

View source: R/lastIter.R

lastIterR Documentation

lastIter

Description

Returns the value of a parameter in the last iteration

Usage

lastIter(gdx, param, secondlast = FALSE)

Arguments

gdx

GDX file

param

Parameter to be returned

secondlast

if TRUE, reads the secondlast iteration. For MAgPIE results, usually there is no last iteration as the food demand model reaches convergence before MAgPIE starts.

Value

magpie object

Author(s)

Benjamin Leon Bodirsky

Examples


  ## Not run: 
    x <- lastIter(gdx)
  
## End(Not run)


pik-piam/magpie4 documentation built on May 2, 2024, 5:29 p.m.