costs: costs

View source: R/costs.R

costsR Documentation

costs

Description

reads costs entering the objective function from a MAgPIE gdx file

Usage

costs(gdx, file = NULL, level = "reg", type = "annuity", sum = TRUE)

Arguments

gdx

GDX file

file

a file name the output should be written to using write.magpie

level

Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate

type

either "annuity" (as it enters the objetive function) or "investment" (investment)

sum

total costs (TRUE) or detailed costs (FALSE)

Value

A MAgPIE object containing the goal function costs including investments [million US$05]

Author(s)

Jan Philipp Dietrich, Markus Bonsch, Misko Stevanovic, Florian Humpenoeder, Edna J. Molina Bacca, Michael Crawford

Examples

## Not run: 
x <- costs(gdx)

## End(Not run)


pik-piam/magpie4 documentation built on May 7, 2024, 11:13 p.m.