Description Usage Arguments Value Author(s) Examples
View source: R/bitacora-internal.R
Generical function to get the fishing effort. The type of fishing effort could be four types:
travelTime for the effort as a function of the travel time.
haulTotal for the effort as a function of the total number of fishing haul.
storageCapacity for the effort as a function of the storage capacity.
searchTime for the effort as a function of the search time to catch the species.
1 |
data |
A |
efforType |
A |
effortBy |
Parameter to indicate whether the effort will be estimated by
time ( |
timeBy |
If the effort is estimated over the time, it could be by days
( |
fleeType |
The effort could be estimated for the whole data given or for a data by fleeType.
By default this parameter is |
A vector
with the estimated effort.
Criscely Lujan-Paredes, criscelylujan@gmail.com.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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
effortNC = effortSpeciesData.bitacora(data = effortData, species = "anchoveta", region = "norte-centro")
# Get the cpue
effortNC_tt = getEffort(data = effortNC, efforType = "travelTime", effortBy = "port")
effortNC_hn = getEffort(data = effortNC, efforType = "haulTotal", effortBy = "port")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.