Package: BASSr 0.3.0

BASSr: Benefit Applied Strategic Sampling

Sampling design for generating a spatially dispersed sample that is representative across multiple variables.

Authors:David Hope

BASSr_0.3.0.tar.gz
BASSr_0.3.0.zip(r-4.7)BASSr_0.3.0.zip(r-4.6)BASSr_0.3.0.zip(r-4.5)
BASSr_0.3.0.tgz(r-4.6-x86_64)BASSr_0.3.0.tgz(r-4.6-arm64)BASSr_0.3.0.tgz(r-4.5-x86_64)BASSr_0.3.0.tgz(r-4.5-arm64)
BASSr_0.3.0.tar.gz(r-4.7-arm64)BASSr_0.3.0.tar.gz(r-4.7-x86_64)BASSr_0.3.0.tar.gz(r-4.6-arm64)BASSr_0.3.0.tar.gz(r-4.6-x86_64)
BASSr_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
BASSr/json (API)

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

Bug tracker:https://github.com/dhope/bassr/issues

Pkgdown/docs site:https://davidhope.ca

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

3.88 score 1 stars 6 scripts 26 exports 76 dependencies

Last updated from:3fadb7f4a5. Checks:11 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR202
linux-devel-x86_64ERROR213
source / vignettesOK321
linux-release-arm64ERROR212
linux-release-x86_64ERROR248
macos-release-arm64ERROR179
macos-release-x86_64ERROR351
macos-oldrel-arm64ERROR208
macos-oldrel-x86_64ERROR345
windows-develERROR216
windows-releaseERROR284
windows-oldrelERROR256
wasm-releaseOK162

Exports:allhexescalculate_benefitcalculate_inclusion_probscalculate_PPS_hab_inlc_prcalculate_z_scoresclean_land_covercost_varscreate_hexescreate_sitesdownweight_selection_prdraw_random_samplesestimate_cost_study_areaextract_habitat_costfull_BASS_rungenrastergetresults_BASSnoGRTS_BASS_runoppositeSignsprepare_costrun_full_BASS_w_selectionrun_grts_on_BASSselect_sitesspeedbasssubsample_grts_and_calc_benefitsumCsumH

Dependencies:AlgDesignBHbootbriocallrclassclassIntclicpp11crayoncrossdesdata.tableDBIdeldirdescdiffobjdplyre1071evaluatefsgenericsgluegtoolsjsonliteKernSmoothlatticelifecyclelme4lpSolvemagrittrMASSMatrixminqamitoolsnabornlmenloptrnngeonumDerivotelpillarpkgbuildpkgconfigpkgloadpraiseprocessxproxypspurrrR6rbibutilsRcppRcppArmadilloRcppEigenRdpackreformulasrlangrprojroots2samplingsfspsurveystringistringrsurveysurvivaltestthattibbletidyrtidyselectunitsutf8vctrswaldowithrwk

BASSr Workflow
Packages and settings | Introduction | Step 1. Define your area of interest | Step 2. Create hexagons

Last update: 2025-06-19
Started: 2020-11-16

Getting Started - Some real data
Setup | 1. Spatial Data | Basic Run | Including Costs | Runs by 'hand' | Weights? (e.g., Akimiski_Island.Rmd) | Calculating Costs | Selection probabilities | Simple selection | Stratified selection

Last update: 2025-06-19
Started: 2023-08-30

Step by Step
Benefit definition | Example work through | Step 1 - Load in data | Step 2 Calculate Habitat Composition | Step 3 Sample unit hexagons - benefit calculation | A. - Select a sample unit to calculate benefit for | B. - Draw a hypothetical sample set from all sample units in study area | C. - Calculate representivity | D. - Calculate benefit for sample unit | E. Repeat multiple times | F. Run benefit calculation for all sample units | Represent the Study Area | How the benefit calculation is used in BASS

Last update: 2025-06-18
Started: 2020-01-29

Cost Breakdown
Cost model parts | Baseline variables

Last update: 2025-06-18
Started: 2020-02-18

Getting Started
Setup | 1. Spatial Data | Basic Run | Including Costs | Runs by 'hand' | Weights? (e.g., Akimiski_Island.Rmd) | Calculating Costs | Selection probabilities | Simple selection | Stratified selection

Last update: 2024-04-12
Started: 2023-03-17

Readme and manuals

Help Manual

Help pageTopics
All of Ontario's Study Areasall_study_areas
Run speed bass on all hexagons and all samplesallhexes
BASSr: Benefit Applied Strategic Sampling in RBASSr-package BASSr
BASSr defunct functionsBASSr-defunct clean_forBass run_full_BASS_w_selection
BASSr deprecated functionsBASSr-deprecated extract_habitat_cost genraster getresults_BASS noGRTS_BASS_run subsample_grts_and_calc_benefit
Calculate the benefit of a hexagon from grts results.calculate_benefit
BASS cost benefit calculationcalculate_inclusion_probs
Calculate Propbability Proportional to Size (PPS) inclusion probabilitiescalculate_PPS_hab_inlc_pr
Calculate z-scores for each hexagon by sum of individual z scorescalculate_z_scores
Clean land cover habitat dataclean_land_cover
rgb colour codes to plot 2015 National Land Cover.clrfile
Variables for cost estimationcost_vars
Create Hexagonal gridcreate_hexes
Create sampling sites within hexagonscreate_sites
Adjust selection weightingdownweight_selection_pr
Draw random sampledraw_random_samples
Cost model estimateestimate_cost_study_area
Extract Habitat and Costextract_habitat_cost-deprecated
A full BASS runfull_BASS_run
Generate Rastergenraster-deprecated
Get the results from a BASS grts rungetresults_BASS-deprecated
2015 National Landcover Classification Tablelcc2015_codes
A calculate BASS from random samplesnoGRTS_BASS_run-deprecated
Polygon SF of Ontarioontario
Opposite signs True or falseoppositeSigns
Propare hexagons for cost calculationsprepare_cost
Dummy costs datapsu_costs
Dummy hex data to be cleanedpsu_hex_dirty
Dummy hex datapsu_hexagons
Dummy sampled hexespsu_samples
Full BASSr run with sample selectionrun_full_BASS_w_selection-defunct
Run grts sampling on BASSr resultsrun_grts_on_BASS
Select sites for samplingselect_sites
The internal BASSr benefit algorithmspeedbass
Dummy SSU land coverssu_land_cover
Dummy SSU pointsssu_points
BASSr data needed for example study areaStudyArea_hexes
Subsample GRTS and calculate benefitsubsample_grts_and_calc_benefit-deprecated
sum of vectorsumC
Add a number to a sum of vectorsumH