make.obs.flag.dat: Modify eflalo for Cochran estimation

View source: R/make.obs.flag.dat.r

make.obs.flag.datR Documentation

Modify eflalo for Cochran estimation

Description

Modifies the eflalo dataset for Cochran ratio estimator. Adds a OBSFLAG field inicating if the trip was observed. This can be set as a percentage of total trips

Usage

make.obs.flag.dat(dat, obs_level = 0.1)

Arguments

dat

the eflalo dataset. Other datasets for this function should have simialr column names.

obs_level

proportion of trips observed (observer coverage)

Value

a 'melted' dataframe of trip data where species is a single column

References

Niels Hintzen, Francois Bastardie and Doug Beare (2014). vmstools: For analysing fisheries VMS (Vessel Monitoring System) data. R package version 0.72. http://CRAN.R-project.org/package=vmstools

Examples

#' data(eflalo)
dm = make.obs.flag.dat(eflalo, obs_level = .1)
data(eflalo)
dm = make.obs.flag.dat(eflalo, obs_level = .1)

noaa-garfo/discaRd documentation built on April 17, 2025, 10:32 p.m.