Skip to content

rarefun

0.1.0

Functions for Rare Events Analysis

0packages depend
547downloads / year
39.5%test coverage
13/13checks pass

Overview

About
Maintained by Vyacheslav LyubchichFirst published 2026-06-021 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.9 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.04
39.5%
Coverage · measured lines
100%
Documentation · exports
9
Dependencies · direct
Check history
  • OK2026-06-03
    6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
30%
Documented parameters
100%
Return-value docs
100%
References docs
45%

Downloads

547
CRAN downloads in the past year
Rank #21,972 · ~1/day · ~46/mo
Daily download trend is not available in this view yet.
23630 days
54790 days
5471 year
Compare downloads with other packages →
Also on1 r2u22 autocran

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
50Commits
1Contributors
50 commits · Last activity 2026-05-29 · 0% stars, 30d

Stars over time

2025-11-11 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (9)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,801 (64%)Rd 998 (36%)
Code characteristics
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

Loading call graph…

Lowest coverage

9 functions
FunctionCycloCoverage
gof_qr exp40%
match_spatial_points exp120%
partial_qrf exp30%
rare_heatwaves exp160%
rare_iforest exp130%
rare_residuals exp6256%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
Annapolistbl_df/tbl/data.frame16,425 × 3

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-06-02 · current release
  • R
    R 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
Report a problem with this page →