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,
  set_count,
  set_success_status_code,
  set_success_status_label,
  school_type_code,
  activity_code,
  activity_label,
  time_at_sea
)

Arguments

trip_id

Object of class character expected. Trip identification.

activity_id

Object of class character expected. Activity identification.

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.

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.

time_at_sea

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


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.