The goal of kenyaweather is to …
You can install the released version of kenyaweather from CRAN with:
remotes::install_github("merely-useful/kenyaweather")This is a basic example which shows you how to solve a common problem:
library(kenyaweather)
weather_report("Mombasa")
#> `geom_smooth()` using method = 'gam' and formula 'y ~ s(x, bs = "cs")'weather_summary("Lodwar")| variable | precipitation | average_temp | max_temp | min_tmp |
|---|---|---|---|---|
| Maximum Year | 2021.00000 | 2009.000000 | 2021.000000 | 2016.000000 |
| Minimum Year | 2003.00000 | 2012.000000 | 2020.000000 | 2021.000000 |
| Average across Years | 81.10627 | 301.285028 | 238.887486 | 358.295071 |
| Standard Deviation across Years | 184.39357 | 6.079021 | 6.367616 | 4.502842 |
-
R/contains the package functions. -
dev-scripts/contains a script to re-generate this repository. > Don’t run unless you want to overwrite things in the repo. -
tests/contains the tests. -
.github/is where both the community files such asCONTRIBUTING.mdand the GitHub Actions live.
