Description Usage Arguments Value Examples
View source: R/extractStreamEdgeCovariates.R
This function transfers specified variables recorded on the edges of a SpatialStreamNetwork object to the observed (and possibly prediction) sites in that SpatialStreamNetwork object.
1 | extractStreamEdgeCovariates(ssn, columns)
|
ssn |
an object of class SpatialStreamNetwork |
columns |
a vector of column names that should be extracted from the data slot of the SpatialStreamNetwork object |
An object of class SpatialStreamNetwork.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.