Package: openNCAI 0.2.0

Kate OHara

openNCAI: Calculates a Natural Capital Assets Index

Calculates a regional natural capital assets index (NCAI) following the methodology designed by NatureScot for Scotland as described in Albon, Balana, Brooker & Eastwood (2014) <https://www.nature.scot/sites/default/files/2025-06/naturescot-commissioned-report-751.pdf> and McKenna et al. (2019) <doi:10.1016/J.ECOLIND.2019.105645>. Processes habitat extent and condition data alongside metadata and weighting systems to produce a yearly single figure indexed relative to a base-year value of 100.

Authors:Kate O'Hara [aut, cre], Chris Littleboy [aut]

openNCAI_0.2.0.tar.gz
openNCAI_0.2.0.zip(r-4.7-any)openNCAI_0.2.0.zip(r-4.6-any)openNCAI_0.2.0.zip(r-4.5-any)
openNCAI_0.2.0.tgz(r-4.6-any)openNCAI_0.2.0.tgz(r-4.5-any)
openNCAI_0.2.0.tar.gz(r-4.7-any)openNCAI_0.2.0.tar.gz(r-4.6-any)
openNCAI_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
openNCAI/json (API)

# Install 'openNCAI' in R:
install.packages('openNCAI', repos = c('https://oharakate.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/oharakate/openncai/issues

Datasets:

On CRAN:

Conda:

forth2ogeospatialhabitat-conditionhabitat-extentmeasuring-natural-capitalnatural-capitalnatural-capital-assetsncaiopen-scienceopen-source

6.50 score 3 stars 14 scripts 213 downloads 7 exports 36 dependencies

Last updated from:e9780b3519. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK143
source / vignettesOK215
linux-releaseOK180
macos-releaseOK178
macos-oldrelOK165
windows-develOK114
windows-releaseOK104
windows-oldrelOK100
wasm-releaseOK116

Exports:calc_ncai_subsetcheck_missingcreate_ncai_templateget_ncaiindex_and_smoothread_ncai_templateshow_missing

Dependencies:cellrangerclicpp11crayondplyrgenericsgluehmsjanitorlifecyclelubridatemagrittropenxlsxpillarpkgconfigprettyunitsprogresspurrrR6Rcppreadxlrematchrlangslidersnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswarpwithrzip

openNCAI in Brief
Learn more | Details of the bundled data objects | Metadata objects | Environmental measurements objects | Weighting objects

Last update: 2026-09-03
Started: 2026-05-03

Replicating Scotland's NCAI
Introduction | Setup | Accessing Package Data | Understanding The Required Data Inputs | Metadata | Environmental Measurements | Weighting Scores | Data expectations | Calculating The Overall Index | Generating Breakdowns By Service Type or Broad Habitat | Build the plot | Basic lines | Point marker for overall line to distinguish trend | Fix the Y scale to match the 90-110 range | Consistent X scale | Labels | Classic theme (solid axis lines, no grid) | Minimal centring for the title | Prepare the data: | Build the plot: | Lines for all habitats | Diamond marker on the overall trend line | We filter by 'breakdown' because that remains "overall" internally | Fix the Y scale | The requested classic theme | Digging Deeper - Accessing Elements of the Calculation Process | 1. Prepare the data | Extract years and values into a long-format data frame | Calculate correlations for the annotation | Pivot to long format for ggplot | 2. Create the ggplot

Last update: 2026-09-03
Started: 2026-02-05

Using openNCAI's Data Entry Templates
Introduction | Step 1: Assembling the metadata | Step 2: Creating the data input spreadsheet | Step 3: Read in data from the completed template

Last update: 2026-09-03
Started: 2026-05-02