Description Usage Arguments Details Value Examples
Constructs a covariate map for R-ECA
1 | getCovariateMap(covariate, samples, landings)
|
covariate |
character() name of covariate to make map for |
samples |
data.table() the samples the covariate mapping should be defined for (must contain column specified by 'covariate') |
landings |
data.table() the landings the covariate mapping should be defined for (may contain column specified by 'covariate') |
RECA require all covariate to be formatted as integers. In order to maintain connection to other formats for the covariates, they should be converted back and forth with a pre-defined covariate map
list() where the nth member represents the RECA covariate value 'n', so that for a covarate 'cov', the integer i is used for value a, when covariateMaps[[cov]][[i]] == a
1 2 3 4 5 | samples <- prepRECA::NORportsampling2018$LE
samples$Metier5 <- samples$LEmetier5
landings <- CLCodHadNOR
landings$Metier5 <- landings$FishingActivityCategoryEuropeanLvl5
getCovariateMap("Metier5", samples, landings)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.