-
Notifications
You must be signed in to change notification settings - Fork 30
/
calcGDPppp.R
61 lines (58 loc) · 2.08 KB
/
calcGDPppp.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#' calcGDPppp
#'
#' @description
#' `r lifecycle::badge('deprecated')`
#'
#' @param GDPpppCalib to what should be calibrated? past, future or a transition?
#' @param GDPpppPast GDPppp past data source
#' @param GDPpppFuture GDPppp future data source
#' @param FiveYearSteps Only five year steps if TRUE, FALSE returns years from source data
#' @param naming naming scheme
#'
#' @return GDP PPP(ICP11) in million USD05 equivalents
#' @seealso [mrdrivers::calcGDP()]
#'
calcGDPppp <- function(GDPpppCalib = NULL,
GDPpppPast = NULL,
GDPpppFuture = NULL,
FiveYearSteps = TRUE,
naming = NULL) {
warning("calcGDPppp() is deprecated. Returning default 'calcOutput(GDP)' output instead. Please use mrdrivers::calcGDP() directly.")
x <- calcOutput("GDP", FiveYearSteps = FiveYearSteps, aggregate = FALSE, supplementary = TRUE)
list(x = x$x,
weight = x$weight,
unit = x$unit,
description = x$description)
}
#' calcGDPpppFuture
#'
#' @description
#' `r lifecycle::badge('deprecated')`
#'
#' @param GDPpppFuture GDPppp future data source
#' @return GDP PPP(ICP11) in million USD05 equivalents
#' @seealso [mrdrivers::calcGDPFuture()]
calcGDPpppFuture <- function(GDPpppFuture = NULL) {
warning("calcGDPpppFuture() is deprecated. Please use mrdrivers::calcGDPFuture() directly.")
x <- calcOutput("GDPFuture", aggregate = FALSE, supplementary = TRUE)
list(x = x$x,
weight = x$weight,
unit = x$unit,
description = x$description)
}
#' calcGDPpppPast
#'
#' @description
#' `r lifecycle::badge('deprecated')`
#'
#' @param GDPpppPast GDPppp future data source
#' @return GDP PPP(ICP11) in million USD05 equivalents
#' @seealso [mrdrivers::calcGDPPast()]
calcGDPpppPast <- function(GDPpppPast = "WDI-MI") {
warning("calcGDPpppPast() is deprecated. Please use mrdrivers::calcGDPPast() directly.")
x <- calcOutput("GDPPast", GDPPast = GDPpppPast, aggregate = FALSE, supplementary = TRUE)
list(x = x$x,
weight = x$weight,
unit = x$unit,
description = x$description)
}