Create R6 reference object class activity

Methods


Method new()

Initialize function for R6 activities class.

Usage

activity$new(
  trip_id,
  activity_id,
  ocean,
  activity_date,
  activity_number,
  activity_latitude,
  activity_longitude,
  set_count,
  school_type,
  activity_code,
  activity_name,
  time_at_sea
)

Arguments

trip_id

Object of class character expected. Trip identification.

activity_id

Object of class character expected. Activity identification.

ocean

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.

school_type

Object of class integer expected. School type identification.

activity_code

Object of class integer expected. Activity code identification.

activity_name

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.