getEffort: Get fishing effort

Description Usage Arguments Value Author(s) Examples

View source: R/bitacora-internal.R

Description

Generical function to get the fishing effort. The type of fishing effort could be four types:

Usage

1
getEffort(data, efforType, effortBy, timeBy, fleeType = NULL)

Arguments

data

A data.frame with information to estimated the fishing effort (in columns). This data base have to contain columns of the time (days, months, years, season), ports and the fleet type.

efforType

A character. It could be one of the fishing effort type ("travelTime", "haulTotal", "storageCapacity", "searchTime").

effortBy

Parameter to indicate whether the effort will be estimated by time (effortBy = time) or by port (effortBy = port).

timeBy

If the effort is estimated over the time, it could be by days (timeBy = days), months (timeBy = months), years (timeBy = years) or by seasons (timeBy = seasons).

fleeType

The effort could be estimated for the whole data given or for a data by fleeType. By default this parameter is NULL.

Value

A vector with the estimated effort.

Author(s)

Criscely Lujan-Paredes, criscelylujan@gmail.com.

Examples

 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")

imarpe/imarpe documentation built on Aug. 8, 2020, 8:40 p.m.