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

e2e_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 <- e2e_read("North_Sea", "1970-1999") 
#> Current working directory is... 
#> 'C:/Users/jackl/OneDrive - University of Strathclyde/Documents/Research/Packages/StrathE2E/strathe2e2/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\RtmpYdRhoX'
#> 
#> Model setup and parameters gathered from ...
#> StrathE2E2 package folder
#> Model results will be directed to/from ...
#> 'C:\Users\jackl\AppData\Local\Temp\RtmpYdRhoX/North_Sea/1970-1999/'
    results<-e2e_run(model, nyears=2,csv.output=FALSE)
    harvest_ratio_data <- e2e_extract_hr(model,results,csv.output=FALSE)