#' NOAA's Arctic Sea Daily Ice Extend Data
#'
#' A data set containing the daily ice extent at Arctic Sea from 1978 to 2019,
#' collected by National Oceanic and Atmospheric Administration (NOAA)
#'
#' @format A data frame with 13391 rows and 6 variables:
#' \describe{
#' \item{Year}{Years of available data (1978--2019).}
#' \item{Month}{Month (01--12).}
#' \item{Day}{Day of the month indicated in Column Month.}
#' \item{Extent}{Daily ice extent, to three decimal places.}
#' \item{Missing}{Whether a day is missing (1) or not (0)).}
#' \item{Source Data}{data source in NOAA database.}
#' }
#' @source <https://nsidc.org/data/g02135/versions/3>
#' @examples
#' library(dplyr)
#' library(lubridate)
#' library(ggplot2)
#'
#' data(arctic_2019)
#'
#' # Create day in the year column to replace Month and Day
#' north <-
#' arctic_2019 %>%
#' mutate(yday = yday(make_date(Year, Month, Day)),
#' .keep = "all") %>%
#' select(Year, yday, Extent)
#'
#' ggplot(north) +
#' geom_linerange(aes(x = yday, ymin = Year - 0.2, ymax = Year + 0.2),
#' size = 0.5, color = "red") +
#' scale_y_continuous(breaks = seq(1980, 2020, by = 5),
#' minor_breaks = NULL) +
#' labs(x = "Day",
#' y = "Year",
#' title = "Measurement frequencies were not always the same")
"arctic_2019"
#' Discrete Form of Smoothed Functional Form of Arctic Data
#'
#' Raw Arctic data were smoothed and then transformed into functional data using
#' `fda` package. To overcome the difficulty of exporting an `fda` object in a
#' package, the object was discretized into a data set with 365 columns
#' corresponding to 365 days a year and 39 rows corresponding to
#' 39 years. The years are from 1979 to 1986, then from 1989 to 2018. The years
#' 1978, 1987, and 1988 were removed because the measurements were not complete.
#'
#' @format A data frame with 39 rows corresponding to 39 years (1979 to 1986,
#' 1989 to 2019) and 366 columns.
#' @seealso NOAA's raw data at [arctic_2019] and the code to generate this data
#' in data-raw/ folder of source code.
"smoothed_arctic"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.