forked from pik-piam/mrremind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pik-piam#532 from fbenke-pik/expert
add expert guess 'tradeConstraints'
- Loading branch information
Showing
9 changed files
with
97 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Type: Package | ||
Package: mrremind | ||
Title: MadRat REMIND Input Data Package | ||
Version: 0.186.1 | ||
Date: 2024-08-29 | ||
Version: 0.186.2 | ||
Date: 2024-09-02 | ||
Authors@R: c( | ||
person("Lavinia", "Baumstark", , "[email protected]", role = c("aut", "cre")), | ||
person("Renato", "Rodrigues", role = "aut"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#' Calculate expert guesses | ||
#' | ||
#' @author Falk Benke | ||
#' | ||
#' @param subtype must be 'tradeConstraints' (more to come) | ||
#' @export | ||
calcExpertGuess <- function(subtype) { | ||
if (subtype != "tradeConstraints") { | ||
stop("Invalid subtype. Supported subtypes: 'tradeConstraints'") | ||
} | ||
|
||
x <- readSource("ExpertGuess", subtype = subtype, convert = FALSE) | ||
|
||
if (subtype == "tradeConstraints") { | ||
unit <- "unitless" | ||
description <- c( | ||
"parameter by Nicolas Bauer (2024) for the region specific ", | ||
"trade constraints, values different to 1 activate constraints ", | ||
"and the value is used as effectiveness to varying degrees ", | ||
"such as percentage numbers" | ||
) | ||
isocountries <- FALSE | ||
} | ||
|
||
return(list( | ||
x = x, | ||
weight = NULL, | ||
unit = unit, | ||
description = description, | ||
isocountries = isocountries | ||
)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.