Create R6 reference object class activity
new()Initialize function for R6 activities class.
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
)trip_idObject of class character expected. Trip identification (unique topiaid from database).
activity_idObject of class character expected. Activity identification (unique topiaid from database).
ocean_codeObject of class integer expected. Ocean identification.
activity_dateObject of class character expected. Activity date in format year month day.
activity_numberObject of class integer expected. Activity number.
activity_latitudeObject of class numeric expected. Latitude, in decimal degree, of the activity.
activity_longitudeObject of class numeric expected. Longitude, in decimal degree, of the activity.
time_at_seaObject of class integer expected. Time at sea in hours.
set_countObject of class integer expected. Number of set associated to the activity.
set_success_status_codeObject of class integer expected. Code status of the set.
set_success_status_labelObject of class character expected. Label status of the set.
school_type_codeObject of class integer expected. School type identification.
activity_codeObject of class integer expected. Activity code identification.
activity_labelObject of class character expected. Activity identification.
objectoperation_codeObject of class character expected. Operation(s) on floating object(s) code(s) identification, comma-separated if more than one.
objectoperation_labelObject of class character expected. Operation(s) on floating object(s) identification, comma-separated if more than one.
objectoperation_idObject of class character expected. Floating object(s) identification (unique topiaid from database), comma-separated if more than one.
elementarycatchesObject of type data.frame or tbl_df with elementarycatch(es) data expected for catch activities and NULL for other activities (default).
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).
weight_category_min:  lower limit of the weight category (kg), type numeric.
weight_category_max:  upper limit of the weight category (kg), type numeric.
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).