Package: bean
Type: Package
Title: Data Thinning of Species Occurrences in Environmental Space
Version: 0.2.0
Authors@R: c(
    person("Paanwaris", "Paansri",
           role = c("cre", "aut"),
           email = "paanwaris@vt.edu",
           comment = c(ORCID = "0000-0001-9992-098X")),
    person("Luis E.", "Escobar",
           role = c("aut", "ctb"),
           email = "escobar1@vt.edu",
           comment = c(ORCID = "0000-0001-5735-2750")))
Maintainer: Paanwaris Paansri <paanwaris@vt.edu>
Description: 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.
License: MIT + file LICENSE
URL: https://github.com/paanwaris/bean,
        https://paanwaris.github.io/bean/
BugReports: https://github.com/paanwaris/bean/issues
Encoding: UTF-8
LazyData: true
Depends: R (>= 4.0)
Imports: MASS, stats, terra
Suggests: covr, knitr, rmarkdown, testthat (>= 3.0.0), ggplot2, rgl
VignetteBuilder: knitr
Config/testthat/edition: 3
Config/roxygen2/version: 8.0.0
RoxygenNote: 8.0.0
NeedsCompilation: no
Packaged: 2026-05-27 14:37:15 UTC; paanw
Author: Paanwaris Paansri [cre, aut] (ORCID:
    <https://orcid.org/0000-0001-9992-098X>),
  Luis E. Escobar [aut, ctb] (ORCID:
    <https://orcid.org/0000-0001-5735-2750>)
Repository: CRAN
Date/Publication: 2026-05-30 13:50:07 UTC
Built: R 4.7.0; ; 2026-06-05 02:17:35 UTC; windows
