extractStreamEdgeCovariates: Extract covariates on stream edges to observed and/or...

Description Usage Arguments Value Examples

View source: R/extractStreamEdgeCovariates.R

Description

This function transfers specified variables recorded on the edges of a SpatialStreamNetwork object to the observed (and possibly prediction) sites in that SpatialStreamNetwork object.

Usage

1

Arguments

ssn

an object of class SpatialStreamNetwork

columns

a vector of column names that should be extracted from the data slot of the SpatialStreamNetwork object

Value

An object of class SpatialStreamNetwork.

Examples

1
2
3
4
5
6
7
8
set.seed(1)

# Create an SSN
s <- createSSN(10, binomialDesign(10), 
path = paste(tempdir(), "example01.ssn", sep = "/"), importToR = TRUE)

# Extract stream edge covariates
s <- extractStreamEdgeCovariates(s, "Length")

apear9/SSNdesign documentation built on Feb. 19, 2020, 4:29 a.m.