knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

avalanchr

avalanchr is an R package 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

library(avalanchr)

The main database connection function is db_con()

db_con("residents_per_sector")

However, we also have several wrappers to connect to the data:

get_resident_data()
get_donation_data()

Each of these functions has a data_table argument. If you prefer working with data.table, setting this argument to TRUE will return a data.table instad of `tibble.

get_resident_data(data_table = TRUE)

Confidentially, avalanchr also helps us, ahem, acquire certain Shinra data about reactor output.

reactor_output <- hack_shinra_data()
reactor_output

Summarizing and plotting data

avalanchr includes functionality to quickly summarize and visualize several key tasks. Two examples are count_donations() and plot_donations():

count_donations()
plot_donations()

Using R Markdown templates

avalanchr comes with an R Markdown template to help facilitate data reports. In RStudio, simply go to File > New File> R Markdown.... Then, select "AVALANCHE report" from the From Template tab.



malcolmbarrett/avalanchr documentation built on Jan. 26, 2020, 12:59 a.m.