Skip to content

ecocbo

1.0.0

Calculating Optimum Sampling Effort in Community Ecology

0packages depend
3.6Kdownloads / year
39.6%test coverage
13/13checks pass

Overview

About
Maintained by Arturo Sanchez-PorrasFirst published 2023-08-184 releasesCRAN page ↗GitHub ↗

A system for calculating the optimal sampling effort, based on the ideas of "Ecological cost-benefit optimization" as developed by A. Underwood (1997, ISBN 0 521 55696 1). Data is obtained from simulated ecological communities with prep_data() which formats and arranges the initial data, and then the optimization follows the following procedure of four functions: (1) prep_data() takes the original dataset and creates simulated sets that can be used as a basis for estimating statistical power and type II error. (2) sim_beta() is used to estimate the statistical power for the different sampling efforts specified by the user. (3) sim_cbo() calculates then the optimal sampling effort, based on the statistical power and the sampling costs. Additionally, (4) scompvar() calculates the variation components necessary for (5) Underwood_cbo() to calculate the optimal combination of number of sites and samples depending on either an economic budget or on a desired statistical accuracy. Lastly, (6) plot_power() helps the user visualize the results of sim_beta().

Install

Health

CRAN checks
13OK
Slowest check: 4.2 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.04
39.6%
Coverage · measured lines
100%
Documentation · exports
13
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 272 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
53%

Downloads

3.6K
CRAN downloads in the past year
Rank #17,852 · ~10/day · ~297/mo
Daily download trend is not available in this view yet.
21330 days
65890 days
3.6K1 year
Compare downloads with other packages →
Also on134 r2u15 autocran

Repository

Repository
0Stars
1Forks
0Open issues
0Open PRs
0Releases
99Commits
2Contributors
License GPL-3.0 · 99 commits · Last activity 2026-05-11

Forks over time

2024-01-31 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/arturosp/ecocbo on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
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
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author, Copyright holder
Copyright holders (1)
Author, Copyright holder
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    2025-11-22 · current release · diff ↗
  • 0.13.0
    2025-08-23 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.12.0
    2024-08-21 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.10.2
    2023-08-18
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-08-18
Total releases
4 / 3 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
1.6 MB / 7 files
Download size
1.9 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →