Description Usage Arguments Details Value Author(s) Examples
View source: R/bitacora-internal.R
Get the relative catch per unit effort (cpue)
1 2 | getCpue_relative(data, toTons = FALSE, efforType, cpueBy = "time", timeBy,
fleeType = NULL)
|
data |
A |
toTons |
A logical parameter. |
efforType |
A
|
cpueBy |
Parameter to indicate whether the relative cpue will be estimated by
time ( |
timeBy |
If the relative cpue is estimated over the time, it could be by days
( |
fleeType |
The relative cpue could be estimated for the whole data given or for a data by fleeType.
By default this parameter is |
The relative cpue is a index used on bitacora report.
A vector
with the relative cpue.
Criscely Lujan-Paredes, criscelylujan@gmail.com.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Read a example of data base
bitacoraData = system.file("extdata", "bitacoraData.csv", package = "imarpe")
# Create a object of bitacora class
bitacoraObject = getBitacoraData(file = bitacoraData)
# Get the results
mainBitacoraData = getMainResults.bitacora(object = bitacoraObject, language = "spanish",
specie = "anchoveta", effortData = TRUE)
# Effort data
effortData = mainBitacoraData$effortData
# Filter data: anchovy data for anchovy and the north-central region
effortNC = effortSpeciesData.bitacora(data = effortData, species = "anchoveta", region = "norte-centro")
# Get the cpue relative
getCpue_relative(data = effortNC, efforType = "travelTime", cpueBy = "port")
getCpue_relative(data = effortNC, efforType = "travelTime", cpueBy = "time", timeBy = "months")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.