read_rsk: read_rsk

read_rskR Documentation

read_rsk

Description

Read MNRISKS modeled .Rsk result file

Usage

read_rsk(
  file,
  scenarios = NULL,
  year = 2017,
  filter_word = NULL,
  aggregate_facs = FALSE
)

Arguments

file

Path to .Rsk file or .zip file

scenarios

Column names to assign to result columns. Default will assign generic numbers (e.g. "scenario_1")

year

The MNRISKS results year. Default value is 2017.

filter_word

Will only keep results with the entered text, such as "Benzene" or "A_Boilers". The default = NULL will keep all results.

aggregate_facs

TRUE/FALSE. Will group_by pollutant and SCC to sum risks/concentrations. Default = FALSE

Examples

## Not run: 
# Read in a single .rsk file
acrolein <- read_rsk("acrolein_results.rsk", year = 2017)

# Read in a single Zipped .rsk file
boilers <- read_rsk("area_results.zip", year = 2017, filter_word = "Boilers")

## End(Not run)

MPCA-air/mnrisks documentation built on March 21, 2023, 4:24 a.m.