check_times | R Documentation |
This is a helper function used in get_total_value
to check that
surveyor for start_time
, wait_time
, end_time
,
and fishing_day_length
are valid.
check_times(
start_time = NULL,
wait_time = NULL,
end_time = NULL,
fishing_day_length = NULL
)
start_time |
The start time of the clerk. An |
wait_time |
the wait time of the clerk. The default is |
end_time |
the end time of the clerk. An |
fishing_day_length |
the total length of the fishing day, in hours, as |
Two of the three start_time
, wait_time
, or end_time
must be
provided. The third will be calculated.
Steven H. Ranney
library(dplyr)
set.seed(256)
start_time <- NULL
end_time <- NULL
wait_time <- NULL
# Will return error
## Not run: check_times(start_time = start_time, end_time = end_time, wait_time = wait_time,
fishing_day_length = 12)
## End(Not run)
start_time <- 2
end_time <- NULL
wait_time <- NULL
# Will return an error
## Not run: check_times(start_time = start_time, end_time = end_time, wait_time = wait_time,
fishing_day_length = 8)
## End(Not run)
start_time <- 2
end_time <- 6
wait_time <- NULL
fishing_day_length <- 8
check_times(start_time = start_time, end_time = end_time, wait_time = wait_time,
fishing_day_length = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.