Skip to contents

The function extracts the inshore, offshore and whole-domain values of harvest ratio (proportion of biomass captured per day) for each guild, from the results object generated by the e2e_run() function.

Usage

e2ep_extract_hr(model, results, csv.output = FALSE)

Arguments

model

R-list object defining the model configuration compiled by the e2e_read() function.

results

R-list object generated by the e2e_run() function.

csv.output

Logical. If TRUE then enable writing of CSV output files (default=FALSE).

Value

Dataframe of harvest ratio values, rows = guilds, columns = zone

See also

Examples

    model <- e2ep_read("Barents_Sea", "2011-2019") 
#> Current working directory is... 
#> 'C:/Users/jackl/OneDrive - University of Strathclyde/Documents/StrathE2E/strath-e-2-e-polar-webdev/docs/reference'
#> No 'results.path' specified so any csv data requested
#> will be directed to/from the temporary directory...
#> 'C:\Users\jackl\AppData\Local\Temp\RtmpSgdWsc'
#> 
#> Model setup and parameters gathered from ...
#> StrathE2E2 package folder
#> Model results will be directed to/from ...
#> 'C:\Users\jackl\AppData\Local\Temp\RtmpSgdWsc/Barents_Sea/2011-2019/'
    results<-e2ep_run(model, nyears=2,csv.output=FALSE)
    harvest_ratio_data <- e2ep_extract_hr(model,results,csv.output=FALSE)