Learn R Programming

SSNbler: Assemble 'SSN' objects

'SSNbler' imports, creates and assembles data needed to fit spatial-statistical stream-network models using the SSN2 R package. Streams, observations, and prediction locations are represented as simple features and specific tools have been provided to define topological relationships between features; calculate the hydrologic distances (with flow-direction preserved) and the spatial additive function used to weight converging stream segments; and export the topological, spatial, and attribute information to an SSN object, which can be efficiently stored, accessed and analysed in R.

Learn more about 'SSNbler' on our website.

Installation Instructions

# install the most recent approved version from CRAN
install.packages("SSNbler")
# load the most recent approved version from CRAN
library(SSNbler)

Install and load the most recent version of'SSNbler' from GitHub by running

# Installing from GitHub requires you first install the remotes package
install.packages("remotes")

# install the most recent version from GitHub
remotes::install_github("pet221/SSNbler", ref = "main")
# load the most recent development version from GitHub
library(SSNbler)

Citation

If you use 'SSNbler' in a formal publication or report, please cite it. Citing 'SSNbler' lets us devote more resources to it in the future. View the 'SSNbler' citation by running

citation(package = "SSNbler")
#> 
#> To cite SSNbler in publications use:
#> 
#>   Peterson E. E., Dumelle, M., Pearse A., Teleki D., and Ver Hoef, J. M.
#>   (2024). SSNbler: Assemble SSN objects in R. R package version 0.1.0
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {{SSNbler}: Assemble SSN objects in {R}},
#>     author = {Erin Peterson and Michael Dumelle and Alan Pearse and Dan Teleki and Jay M. {Ver Hoef}},
#>     year = {2024},
#>     note = {{R} package version 0.1.0},
#>   }

Example Usage

Please see our introductory vignette for a brief example showing how to use 'SSNbler'.

License

This project is licensed under the GNU General Public License, GPL-3.

Copy Link

Version

Install

install.packages('SSNbler')

Monthly Downloads

191

Version

1.1.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Erin Peterson

Last Published

March 26th, 2025

Functions in SSNbler (1.1.0)

ssn_assemble

Assemble an SSN object from an LSN
updist_edges

Get upstream distance for edges in a Landscape Network (LSN)
updist_sites

Get upstream distance for sites in a Landscape Network (LSN)
lines_to_lsn_temp

Convert lines to a landscape network
ssn_check

Check an SSN object
lines_to_lsn

Convert lines to a landscape network (LSN)
SSNbler-package

SSNbler: Assemble 'SSN' Objects
accum_edges

Accumulate edge values downstream
afv_edges

Calculate the additive function value for edges in a LSN
copy_streams_to_temp

Copy streams data to temporary directory
afv_sites

Calculate additive function values for sites in a Landscape Network (LSN)
MF_obs

MF_obs: Water temperature observations in the Middle Fork Basin, Idaho in 2004.
MF_CapeHorn

MF_CapeHorn: Prediction locations on Cape Horn Creek, in the Middle Fork Basin, Idaho.
MF_streams

MF_streams: Middle Fork streams
MF_pred1km

MF_pred1km: Prediction locations at 1km intervals throughout the Middle Fork Basin, Idaho.
MF_preds

MF_preds: A small set of prediction locations found in the Middle Fork Basin, Idaho.
sites_to_lsn

Incorporate sites into a Landscape Network