library(rarr) library(magrittr) library(dplyr)
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Risk assessment is a common component to the project management cycle. The purpose of this package is to assist in the wrangling and presentation of risk assessment data generated throughout the project management cycle. The products created by the functions in this package can be integrated into an R [bookdown
package] report to create a static webpage to communicate risk during a given project.
To install the rarr
package, install from GitHub using the remotes
package:
remotes::install_github(repo = "MVR-GIS/rarr@*release")
Load the package:
library(rarr)
Load data from data source (here we reference internal test data):
risk<-rarr::db_risk
Once the data has been loaded, proceed to the cleaning and wrangle functions. The "risk" table will be used as an example.
risk_active <- remove_inactive_records(db_risk) risk <- wrangle_risk(db_risk)
Related risk tables must also be wrangled to be able to create the timeline and network analysis figures.
rel_action_action<-rarr::wrangle_rel_action_action(db_rel_action_action) rel_dec_action <- rarr::wrangle_rel_dec_action(db_rel_dec_action) rel_dec_dec<- rarr::wrangle_rel_dec_dec(db_rel_dec_dec)
Once the data has been wrangled, it can then be passed into a variety of filters to create tables and figures as seen in BRIP RARR
Some of these processes involve the table functions from the rarr
package and the figure building functions
risk_high <- risk %>% dplyr::filter(COST_RISK == "HIGH" | SCHEDULE_RISK == "High" | EFFICACY_RISK == "High")
rarr::risk_pies(risk_high)
rarr::risk_register_table(risk_high)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.