From a2c3aa51eb75057dcec163d15d5f2e797f11d431 Mon Sep 17 00:00:00 2001 From: jonathan-g Date: Sun, 7 Jul 2024 19:50:51 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20jonathan?= =?UTF-8?q?-g/kayadata@67488fe76fbed628cf69107d225c2bc184c0f247=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgdown.yml | 2 +- reference/project_top_down.html | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgdown.yml b/pkgdown.yml index 841dc94..a84d672 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: kayadata: kayadata.html policy_analysis: policy_analysis.html -last_built: 2024-07-07T19:39Z +last_built: 2024-07-07T19:50Z urls: reference: https://jonathan-g.github.io/kayadata/reference article: https://jonathan-g.github.io/kayadata/articles diff --git a/reference/project_top_down.html b/reference/project_top_down.html index 7477d42..90fac4b 100644 --- a/reference/project_top_down.html +++ b/reference/project_top_down.html @@ -145,13 +145,11 @@

Examples

#> region year P G g E F e f ef #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 China 2037 1.41 30.6 21.6 164. 8981. 5.35 54.9 294. -project_top_down(region_code = "VNM", year = 2043) -#> Warning: There is no country or region with code VNM. -#> Error in dplyr::summarize(., dplyr::across(-"year", .fns = ~stats::approx(x = .data$year, y = .x, xout = ytmp)$y), .by = "region"): In argument: `dplyr::across(...)`. -#> Caused by error in `across()`: -#> ! Can't compute column `P`. -#> Caused by error in `stats::approx()`: -#> ! need at least two non-NA values to interpolate +project_top_down(region_code = "CHE", year = 2043) +#> # A tibble: 1 × 10 +#> region year P G g E F e f ef +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Switzerland 2043 0.00893 1.02 115. 1.23 33.1 1.20 26.8 32.3