tidyttmoment
0.0.5Functional Trait Moment Calculation
Overview
Calculates the community four 'moments' (mean, variance, skewness, and kurtosis) of a given trait based on the moments described in Wieczynski et al. (2019) doi:10.1073/pnas.1813723116. These functional metrics are extremely useful in characterizing the distribution of traits in a plant community. It also provides tidyverse-friendly wrappers to seamlessly calculate advanced functional diversity indices (e.g., FDis, Rao's Q) using 'fundiversity' (Grenie et al. 2023 doi:10.1111/ecog.06585) and functional rarity indices using 'funrar' (Grenie et al. 2017 doi:10.1111/ddi.12629). Evaluating these community-weighted moments and diversity metrics allows researchers to evaluate shifts in optimal phenotypes and understand ecological filtering with exactness.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0812 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-1013 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-0912 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-245 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 20%
Downloads
Repository
Repository practices
7 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/paulesantos/tidyttmoment on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 6 max
- Test cases
- 6 / 0.38 per code line
Test coverage
Line coverage
82%
Expression
81.4%
Tests / Examples
82.4% / 53% ex
Functions
13 4 exported
Complexity
2.1 avg / 6 max
Call network
13 nodes / 9 edges
Call graph
Open call graph →Lowest coverage
13 functions| Function | Cyclo | Coverage |
|---|---|---|
| .onLoad | 2 | 0% |
| show_progress | 2 | 0% |
| .onAttach | 3 | 67% |
| tidy_calc_moment exp | 2 | 80% |
| tidy_to_matrices exp | 2 | 83% |
| tidy_calc_diversity exp | 6 | 85% |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.0.5Latest2026-03-23 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-23
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet