rarefun
0.1.0Functions for Rare Events Analysis
Overview
Functions for detecting and analyzing rare events in data. Implements isolation forest (Liu et al., 2008, doi:10.1109/ICDM.2008.17) and clustering for anomaly detection in time series residuals. Decomposes time series using LOESS (Locally Estimated Scatterplot Smoothing) or STL (Seasonal-Trend decomposition using LOESS). Detects marine heatwaves and cold spells following Hobday et al. (2016) doi:10.1016/j.pocean.2015.12.014. Provides goodness-of-fit tests for quantile regression (Haupt et al., 2011, doi:10.1080/02664763.2011.573542), partial dependence with quantile random forests, MCC (Matthews Correlation Coefficient) computation and testing, knee-point detection via the Kneedle algorithm (Satopaa et al., 2011, doi:10.1109/ICDCSW.2011.20), and spatial point matching.
Install
Health
- OK2026-06-036 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 30%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 45%
Downloads
Repository
Stars over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/vlyubchich/rarefun on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 13.0 median / 62 max
- Test cases
- 3 / 0.04 per code line
Test coverage
Line coverage
39%
Expression
46.1%
Tests / Examples
39.5% / 28% ex
Functions
9 9 exported
Complexity
19.8 avg / 62 max
Call network
9 nodes / 1 edges
Call graph
Open call graph →Lowest coverage
9 functions| Function | Cyclo | Coverage |
|---|---|---|
| gof_qr exp | 4 | 0% |
| match_spatial_points exp | 12 | 0% |
| partial_qrf exp | 3 | 0% |
| rare_heatwaves exp | 16 | 0% |
| rare_iforest exp | 13 | 0% |
| rare_residuals exp | 62 | 56% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| Annapolis | tbl_df/tbl/data.frame | 16,425 × 3 | – |
People & History
1 release. R releases are shown for context.
- 0.1.0Latest2026-06-02 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-02
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 49 KB / 1 file
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet