#' Rename Locations
#'
#' @param dat Dataframe
#' @description Rename Mexico Beach, Nokuse, and Sweetwater in the dataset.
#'
#' @export
renameLocations <- function(dat) {
if ("Mexico Beach" %in% dat$Location) {
dat[which(dat$Location=="Mexico Beach"), ]$Location <- "MB"
dat[which(dat$Location=="Nokuse"), ]$Location <- "N"
dat[which(dat$Location=="Sweetwater"), ]$Location <- "TSP"
}
return(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.