getCpue_relative: Get the relative catch per unit effort (cpue)

Description Usage Arguments Details Value Author(s) Examples

View source: R/bitacora-internal.R

Description

Get the relative catch per unit effort (cpue)

Usage

1
2
getCpue_relative(data, toTons = FALSE, efforType, cpueBy = "time", timeBy,
  fleeType = NULL)

Arguments

data

A data.frame with information about catchs and fishing effort.

toTons

A logical parameter. TRUE (dafault) it assume that the catches is in kilograms and converts it into tonnes (divided by 1000). FALSE it assume the the information is in tons and don't convert the data.

efforType

A character indicating the fishing effort type. It 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.

cpueBy

Parameter to indicate whether the relative cpue will be estimated by time (cpueBy = time) or by port (cpueBy = port).

timeBy

If the relative cpue 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 relative cpue could be estimated for the whole data given or for a data by fleeType. By default this parameter is NULL.

Details

The relative cpue is a index used on bitacora report.

Value

A vector with the relative cpue.

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

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