Description Usage Arguments Value Examples
Generates overview of samples to inform on sample availability in potential cell definitions. Informs on which columns maybe be used as fixed effect covariates, and how grouping of covariates is best done for random effects.
The covariates in landings define the cells. For each cell the covariates defining the cell is reported, before the total landed weight, along with the number of unique occurances of covariates not in landings (including catchId and sampleId). Lastly the number of fish measurements for Age, Weight and Length is reported.
| 1 | rEcaDataReport(samples, landings, covariates)
 | 
| samples | data.table() with samples (as in  
 | 
| landings | data.table() with total landings (as in  
 | 
| covariates | character() vector of columns to consider for covariates. | 
data.table() with columns
one column for each. Defines the cells.
The total weight (kg) in the cell.
The fraction of landings in this cell AND all the cells with higher total weight than this cell.
Count of unique values for covariate. one column for each. Column name is covariate name (from samples) prefixed with N
The number of unique catches sampled in the cell.
The number of unique catch-samples in the cell.
The number of age readings in the cell.
The number of fish weight measurements in the cell.
The number of fish length measurements in the cell.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |  samples <- extractBV(prepRECA::NORportsampling2018$BV,
     c("Age", "Length", "Weight"),
     c("integer", "numeric", "numeric"))
 samples <- merge(samples, prepRECA::NORportsampling2018$SA, by="SAid")
 samples <- merge(samples, prepRECA::NORportsampling2018$SS, by="SSid")
 samples <- merge(samples, prepRECA::NORportsampling2018$LE, by="LEid",
     suffixes = c("", ".LE"))
 samples <- merge(samples, prepRECA::NORportsampling2018$VD, by="VDid")
 samples$catchId <- samples$LEid
 samples$sampleId <- samples$SAid
 samples$date <- samples$LEdate
 samples$Metier5 <- samples$LEmetier5
 landings <- prepRECA::CLCodHadNOR
 landings$LiveWeightKG <- landings$OfficialLandingsWeight
 landings$Metier5 <- landings$FishingActivityCategoryEuropeanLvl5
 rEcaDataReport(samples, landings, c("Metier5", "VDencrCode"))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.