library(devtools)
library(dplyr)
library(magrittr)
toa_example <- read.csv("data-raw/toa_example.csv", stringsAsFactors = FALSE, sep = ";")
toa_example$Month %<>% match(month.abb)
toa_example$Date <- paste(toa_example$Year, toa_example$Month, toa_example$Day, sep = "-")
toa_example$Date %<>% as.Date()
toa_example$Period <- factor(toa_example$Shift, levels = c("AM", "PM"))
toa_example$Catch <- toa_example$TotalCaught
toa_example %<>% select(Date, Period, RodHours, Catch, KOCatch, CTCatch,
RBCatch, BTCatch, LTCatch)
use_data(toa_example, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.