Skip to contents

The most important and common "convert" operations are:

  • removing undefined countries,

  • substituting NAs, see the "substituteNAsWith" argument,

  • using default set names "iso3c", "year", and "variable",

  • fill in countries,

  • sort in chronological order.

Usage

toolGeneralConvert(
  x,
  useDefaultSetNames = TRUE,
  countryFillWith = 0,
  substituteNAsWith = 0,
  warn = TRUE,
  note = TRUE,
  ...
)

Arguments

x

A magpie object.

useDefaultSetNames

TRUE or FALSE.

countryFillWith
substituteNAsWith
warn

TRUE or FALSE.

note

TRUE or FALSE.

...

Arguments passed on to madrat::toolCountryFill()

Value

A magpie object.

Examples

if (FALSE) { # \dontrun{
toolGeneralConvert(x)
} # }