Skip to content

swcEcon

0.1.0Package record

Economic Analysis of Soil and Water Conservation Measures in Watersheds

0packages depend
1.9Kdownloads / year
76.5%test coverage
13/13flavors OK

Overview

About

Provides functions and benchmark datasets for the economic appraisal of soil and water conservation (SWC) measures in watershed development projects. Implements benefit-cost ratio (BCR), net present value (NPV), internal rate of return (IRR) via the bisection method of Brent (1973, ISBN:9780130223715), modified BCR, marginal rate of return using the CIMMYT (1988, ISBN:9686127127) method, payback period, soil loss economic valuation via the Universal Soil Loss Equation of Wischmeier and Smith (1978, ISBN:0160016258), groundwater recharge valuation, employment generation ratio, sensitivity analysis, switching value analysis, and Monte Carlo simulation. Six datasets are included: state-wise BCR benchmarks from NABARD (2019) watershed evaluations, USLE erodibility parameters for Indian soil orders from NBSS and LUP, rainfall erosivity for twenty Indian districts from IMD data, SWC unit cost norms from PMKSY-WDC (GoI 2015), and two hypothetical datasets for illustration. Methods follow Gittinger (1982, ISBN:9780801825439) and Squire and van der Tak (1975, ISBN:9780801816697).

Changes in 0.1.0

First CRAN release

New functions (16 exported)

  • calc_bcr() -- Benefit-cost ratio with discounting, benefit lag, residual value.
  • calc_npv() -- Net present value with annual cash-flow table.
  • calc_irr() -- Internal rate of return via bisection (Brent 1973).
  • calc_pbp() -- Simple and discounted payback period.
  • calc_mrr() -- Marginal rate of return (CIMMYT 1988).
  • calc_mbcr() -- Modified benefit-cost ratio (Gittinger 1982).
  • calc_soil_loss_cost() -- USLE-based soil loss economic valuation.
  • calc_nutrient_cost() -- NPK replacement cost from erosion.
  • calc_water_value() -- Groundwater recharge and runoff harvesting value.
  • calc_irrigation_benefit() -- Additional crop income from SWC-enabled irrigation.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • calc_employment() -- Employment generation ratio with MGNREGS norm check.
  • sensitivity_analysis() -- One-at-a-time sensitivity analysis (8 scenarios).
  • calc_switching_value() -- Switching value for cost and benefit.
  • monte_carlo_swc() -- Stochastic BCR/NPV simulation (Pouliquen 1970).
  • run_swc_pipeline() -- Full appraisal pipeline in one call.
  • generate_swc_report() -- Self-contained HTML economic appraisal report.

Datasets (6)

  • swc_benchmarks -- Real: NABARD WDF Reports 2010-2022; PMKSY-WDC (GoI).
  • usle_india_soils -- Real: NBSS and LUP Technical Bulletin 132 (ICAR).
  • rainfall_erosivity_india -- Real: IMD + Bhattacharyya et al. (2010).
  • swc_cost_norms -- Real: PMKSY-WDC Common Guidelines (GoI 2015).
  • watershed_projects -- Hypothetical: set.seed(2025), 50 projects.
  • farmer_adoption -- Hypothetical: set.seed(2025), 120 households.

Technical notes

  • All source files are pure ASCII -- CRAN portable.
  • Dataset documentation uses NULL sentinel pattern for roxygen2 compatibility.
  • Zero runtime dependencies beyond base R (stats, graphics, grDevices, utils).
  • markdown = FALSE in DESCRIPTION -- plain Rd syntax throughout.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK3 OK2026-04-17
Advisories

none known

Documentation

In release 0.1.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
24includes a package overview page
Examples that run
86%19 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
92%

Downloads

1.9K
CRAN downloads in the past year
Rank #18,788 · ~5/day · ~160/mo
Daily download trend is not available in this view yet.
22930 days
70190 days
1.9K1 year
Compare downloads with other packages →
Also on37 r2u1 autocran

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing swcEcon adds no packages beyond those that come with R.

Depends (1)
R >= 4.1.0
Imports (4)
statsgraphicsgrDevicesutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-04-16 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-16
Total releases
1 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
7.8 KB / 6 files
Download size
59 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("swcEcon")
Islam, S. (2026). swcEcon: Economic Analysis of Soil and Water Conservation Measures in Watersheds (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.swcEcon

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for swcEcon version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy