trip: R6 class trip

tripR Documentation

R6 class trip

Description

Create R6 reference object class trip

Methods

Public methods


Method new()

Initialize function for R6 trip class.

Usage
trip$new(
  trip_id,
  fleet,
  landing_date,
  departure_date,
  logbook_availability,
  fish_hold_empty,
  vessel_id,
  vessel_type
)
Arguments
trip_id

Object of class character expected. Trip identification.

fleet

Object of class character expected. Fleet identification.

landing_date

Object of class character expected. Landing date in format ymd UTC.

departure_date

Object of class character expected. Departure date in format year month day hour minute second.

logbook_availability

Object of class integer expected. Logbook availability value, 1 for available and 0 for not.

fish_hold_empty

Object of class integer expected. Informe if the fish hold empty at the end of the trip, 1 for yes and 0 for not.

vessel_id

Object of class integer expected. Vessel identification.

vessel_type

Object of class character expected. Vessel type identification.


Method clone()

The objects of this class are cloneable with this method.

Usage
trip$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


OB7-IRD/t3 documentation built on April 23, 2023, 7:34 p.m.