Functions and Data Sets for "That's Weird: Anomaly Detection Using R" by Rob J Hyndman

All functions and data sets required for the examples in the book Hyndman (2026) "That's Weird: Anomaly Detection Using R" < https://OTexts.com/weird/>. All packages needed to run the examples are also loaded.


weird

R-CMD-check CRANstatus Downloads Licence

Overview

The weird package contains functions and data used in the book That’s Weird: Anomaly Detection Using R by Rob J Hyndman. It also loads several packages needed to do the analysis described in the book.

Installation

You can install the stable version from CRAN with:

install.packages("weird")

You can install the development version of weird from GitHub with:

# install.packages("pak")
pak::pak("robjhyndman/weird")

Usage

library(weird) will also load the following packages:

When you load the weird package, you get a condensed summary of conflicts with other packages you have previously loaded:

library(weird)
#> ── Attaching core weird packages ─────────────────────────── weird 3.0.0 ──
#> ✔ distributional 0.8.1     ✔ ggplot2        4.0.3
#> ✔ dplyr          1.2.1
#> ── Conflicts ─────────────────────────────────────────── weird_conflicts ──
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ dplyr::lag()    masks stats::lag()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("weird")

3.1.0 by Rob Hyndman, a month ago


https://pkg.robjhyndman.com/weird/, https://github.com/robjhyndman/weird


Report a bug at https://github.com/robjhyndman/weird/issues


Browse source code at https://github.com/cran/weird


Authors: Rob Hyndman [aut, cre, cph] (ORCID: , Torben Tvedebrink [ctb] , Posit Software , PBC [cph]


Documentation:   PDF Manual  


GPL-3 license


Imports aplpack, broom, cli, dbscan, distributional, dplyr, evd, ggplot2, grDevices, ks, mlpack, RANN, robustbase, stray, vctrs

Suggests knitr, mgcv, mclust, rmarkdown, rrcov, testthat, tidyr


See at CRAN