rEcaDataReport | R Documentation |
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.
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.
data(catchsamples)
catchsamples$catchId <- catchsamples$LEid
catchsamples$sampleId <- catchsamples$SAid
catchsamples$date <- catchsamples$LEdate
catchsamples$Metier5 <- catchsamples$LEmetier5
data(landings)
landings$LiveWeightKG <- landings$OfficialLandingsWeight
landings$Metier5 <- landings$FishingActivityCategoryEuropeanLvl5
rEcaDataReport(catchsamples, landings, c("Metier5", "VDencrCode"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.