chooseIdentifier: .chooseIdentifier

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Function to interactively choose an identifier for mapping between datases in the validation database and functions of the magpie library

Usage

1
.chooseIdentifier(func,...,ignore.args=NULL,choose.args=NULL)

Arguments

func

Name of the magpie library function that this data belongs to.

...

Values for arguments that func takes. If an argument is not specified the default value are used. The two arguments "file" and "level" can be omitted without causing problems.

ignore.args

A vector of strings, specifying arguments for which it does not matter what value they have.

choose.args

A vector of strings. A call of func with a certain value of these arguments requires to return argument specific data from the database (e.g. crops in production).

Details

The function checks if an identifier for func(...) already exists. If not, it is checked whether similar identifiers exist and the user is asked if one of those should be used.

Value

A string with the chosen identifier.

Author(s)

Markus Bonsch

See Also

validationPlot,getData,.loadData,addData,add_aggrType,show_aggrTypes,.chooseCollection,addMapping

Examples

1
  ## Not run: test<-.chooseIdentifier(func=land,types="crop",sum=FALSE)

pik-piam/validation documentation built on Nov. 5, 2019, 12:50 a.m.