Skip to contents

Constructor for the creel_schedule S3 class. Wraps a data frame with the creel_schedule class attribute following the tibble-subclass pattern used throughout the package.

Usage

new_creel_schedule(data)

Arguments

data

A data frame to wrap as a creel_schedule.

Value

A data frame with class c("creel_schedule", "data.frame").

Examples

sched <- new_creel_schedule(data.frame(
  date      = as.Date(c("2024-06-01", "2024-06-08")),
  day_type  = c("weekend", "weekend"),
  sampled   = c(TRUE, TRUE)
))
class(sched)
#> [1] "creel_schedule" "data.frame"