library(rarr)
library(magrittr)
library(dplyr)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Introduction

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.

Install

To install the rarr package, install from GitHub using the remotes package:

remotes::install_github(repo = "MVR-GIS/rarr@*release")

Add data

Load the package:

library(rarr)

Load data from data source (here we reference internal test data):

risk<-rarr::db_risk

Wrangle Data

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)

Presenting Data

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

Wrangled output undergoes a filter

risk_high <- risk %>%
   dplyr::filter(COST_RISK == "HIGH" | SCHEDULE_RISK == "High" | EFFICACY_RISK == "High")

Example of creating charts with wrangled risk data

rarr::risk_pies(risk_high)

Example of using a table function to present wrangled risk data

rarr::risk_register_table(risk_high)


MVR-GIS/rarr documentation built on March 4, 2023, 11:47 p.m.