View source: R/prepare-predictive-data.R
prepare_predictor_vars | R Documentation |
Quickly summarizes various date/time and Bethel Test Fishery summaries, intended for fitting in regression models.
prepare_predictor_vars(dates = NULL)
dates |
Object of class |
Data frame with rows for individual dates and columns for:
date
: the date of the opener
year
: the year of the opener
day
: days past May 31st in the year of the opener (see KuskoHarvUtils::to_days_past_may31()
)
hours_open
: the number of hours fishing was allowed that day
fished_yesterday
: TRUE
if drift gillnet fishing occurred the previous day
weekend
: TRUE
if the fishing day occurred on Saturday or Sunday
p_before_noon
: fraction of the open hours that occurred before noon that day
total_btf_cpue
: daily catch-per-unit-effort from the Bethel Test Fishery, averaged over a three day period where date
is the second day
chinook_btf_comp
: daily proportional composition of Chinook salmon from the Bethel Test Fishery, averaged over a three day period where date
is the second day
chum_btf_comp
: daily proportional composition of chum salmon from the Bethel Test Fishery, averaged over a three day period where date
is the second day
sockeye_btf_comp
: daily proportional composition of sockeye salmon from the Bethel Test Fishery, averaged over a three day period where date
is the second day
mean_temp
: daily average air temperature, in degrees Fahrenheit
mean_relh
: daily average percent relative humidity
precip
: total daily precipitation, in inches
All Bethel Test Fishery variables obtained using summarize_btf()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.