The goal of avalanchr is to streamline data workflows for the AVALANCHE data science team. This package will help you connect to our databases, easily construct summaries and visualizations, and create reports to understand our data better.
avalanchr is not yet on CRAN. In the meantime, you can install from our GitHub page:
# install.packages("remotes")
remotes::install_github("malcolmbarrett/avalanchr")
This is a basic example which shows you how to solve a common problem:
library(avalanchr)
The main database connection function is db_con()
. We also have
several wrappers to connect to the data.
db_con("residents_per_sector")
#> sector residents
#> 1 1 1000
#> 2 2 2034
#> 3 3 4594
#> 4 4 2304
#> 5 5 8093
#> 6 6 1200
#> 7 7 300
#> 8 8 2398
get_resident_data()
#> # A tibble: 8 x 2
#> sector residents
#> <fct> <dbl>
#> 1 1 1000
#> 2 2 2034
#> 3 3 4594
#> 4 4 2304
#> 5 5 8093
#> 6 6 1200
#> 7 7 300
#> 8 8 2398
Plot functions begin with plot_()
plot_donations()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.