Package: bean 0.2.2


Paanwaris Paansri
bean: Data Thinning of Species Occurrences in Environmental Space
A suite of tools to mitigate sampling bias in species occurrence records by thinning data in the environmental space (E-space). This process can improve the accuracy and precision of species distribution models (SDM, also known as ecological niche models, ENM). The package offers a data-driven protocol to determine thinning parameters using kernel-density bandwidth selection. Two thinning methods are provided (stochastic and deterministic) to reduce over-sampled environmental conditions and down-weight outlier observations. The name 'bean' reflects the core principle of the method: each 'pod' (a grid cell in E-space) is allowed to contain only a limited number of 'beans' (occurrence points). See Silverman (1986, ISBN:978-0-412-24620-3) and Rousseeuw and Leroy (2003, ISBN:978-0-471-48855-2) for the underlying statistical methods.
Authors:
bean_0.2.2.tar.gz
bean_0.2.2.zip(r-4.7)bean_0.2.2.zip(r-4.6)bean_0.2.2.zip(r-4.5)
bean_0.2.2.tgz(r-4.6-any)bean_0.2.2.tgz(r-4.5-any)
bean_0.2.2.tar.gz(r-4.7-any)bean_0.2.2.tar.gz(r-4.6-any)
bean_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
bean/json (API)
| # Install 'bean' in R: |
| install.packages('bean', repos = c('https://paanwaris.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/paanwaris/bean/issues
Pkgdown/docs site:https://paanwaris.github.io
- occ_data_raw - Raw Rusa unicolor occurrence data
- origin_dat_prepared - Cleaned and scaled occurrence data
- origin_ellipse - Fitted niche ellipsoid for Rusa unicolor
- thinned_deterministic - Deterministically thinned environmental data
- thinned_stochastic - Stochastically thinned environmental data
ecological-niche-modellingspatial-analysis
Last updated from:3f76b69fa6. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 198 | ||
| source / vignettes | OK | 211 | ||
| linux-release-x86_64 | OK | 193 | ||
| macos-release-arm64 | OK | 192 | ||
| macos-oldrel-arm64 | OK | 151 | ||
| windows-devel | OK | 164 | ||
| windows-release | OK | 152 | ||
| windows-oldrel | OK | 142 | ||
| wasm-release | OK | 138 |
Exports:find_env_resolutionfit_ellipsoidplot_beanprepare_beanthin_env_centerthin_env_nd
Last update: 2026-06-19
Started: 2026-05-26
Last update: 2026-06-19
Started: 2026-05-13
Last update: 2026-06-19
Started: 2026-05-13
Last update: 2026-06-19
Started: 2026-05-13
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Find an objective environmental grid resolution | find_env_resolution |
| Fit an environmental niche ellipsoid | fit_ellipsoid |
| Raw Rusa unicolor occurrence data | occ_data_raw |
| Cleaned and scaled occurrence data | origin_dat_prepared |
| Fitted niche ellipsoid for Rusa unicolor | origin_ellipse |
| Visualize n-dimensional environmental thinning results | plot_bean |
| Prepare data for environmental thinning | prepare_bean |
| Deterministic centroid | thin_env_center |
| Thin occurrence data in n-dimensional environmental space | thin_env_nd |
| Deterministically thinned environmental data | thinned_deterministic |
| Stochastically thinned environmental data | thinned_stochastic |