Create R6 reference object class activity

Methods


Method new()

Initialize function for R6 activities class.

Usage

activity$new(
  trip_id,
  activity_id,
  ocean_code,
  activity_date,
  activity_number,
  activity_latitude,
  activity_longitude,
  time_at_sea,
  set_count,
  set_success_status_code,
  set_success_status_label,
  school_type_code,
  activity_code,
  activity_label,
  objectoperation_code,
  objectoperation_label,
  objectoperation_id,
  elementarycatches
)

Arguments

trip_id

Object of class character expected. Trip identification (unique topiaid from database).

activity_id

Object of class character expected. Activity identification (unique topiaid from database).

ocean_code

Object of class integer expected. Ocean identification.

activity_date

Object of class character expected. Activity date in format year month day.

activity_number

Object of class integer expected. Activity number.

activity_latitude

Object of class numeric expected. Latitude, in decimal degree, of the activity.

activity_longitude

Object of class numeric expected. Longitude, in decimal degree, of the activity.

time_at_sea

Object of class integer expected. Time at sea in hours.

set_count

Object of class integer expected. Number of set associated to the activity.

set_success_status_code

Object of class integer expected. Code status of the set.

set_success_status_label

Object of class character expected. Label status of the set.

school_type_code

Object of class integer expected. School type identification.

activity_code

Object of class integer expected. Activity code identification.

activity_label

Object of class character expected. Activity identification.

objectoperation_code

Object of class character expected. Operation(s) on floating object(s) code(s) identification, comma-separated if more than one.

objectoperation_label

Object of class character expected. Operation(s) on floating object(s) identification, comma-separated if more than one.

objectoperation_id

Object of class character expected. Floating object(s) identification (unique topiaid from database), comma-separated if more than one.

elementarycatches

Object of type data.frame or tbl_df with elementarycatch(es) data expected for catch activities and NULL for other activities (default).

Details

Mandatory column names and types of elementarycatch(es) data:

  • elementarycatch_id: Elementary catch identification (class character).

  • ocean_code: Ocean identification (class integer).

  • school_type_code: School type identification (class integer).

  • weight_category_code: Logbook weight category (class integer).

  • weight_category_label: Logbook weight category name identification (class character).

  • species_code: Species code identification (class integer).

  • species_fao_code: Species code identification on 3 characters (class character).

  • species_fate_code: Species fate code identification (class integer).

  • catch_weight: Catch weight in tonnes (class numeric).

  • catch_count: Catch count in number of specimens caught (class integer).


Method clone()

The objects of this class are cloneable with this method.

Usage

activity$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.