Description Usage Arguments Value Author(s) Examples
View source: R/bitacora-internal.R
Receive an object of bitacora class, indexes the data by species, estimates the season by species, for anchovy the season depend of region (north-central and south region) but for other species (sardine, jack mackerel, chub mackerel and bonito) the season is annual.
1 | effortSpeciesData.bitacora(data, species, region = NULL)
|
data |
A |
species |
A |
region |
If the species is anchovy ( |
A data.frame
with effort data for a given species.
Criscely Lujan-Paredes, criscelylujan@gmail.com.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Read a example of data base
bitacoraData = system.file("extdata", "bitacoraData.csv", package = "imarpe")
# Create a object of bitacora class
bitacoraObject = getBitacoraData(file = bitacoraData)
class(bitacoraObject)
# Get the results
mainBitacoraData = getMainResults.bitacora(object = bitacoraObject, language = "spanish",
specie = "anchoveta", effortData = TRUE)
# Effort data
effortData = mainBitacoraData$effortData
# Use of effortSpeciesData.bitacora
effortNC = effortSpeciesData.bitacora(data = effortData, species = "anchoveta", region = "norte-centro")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.