Description Usage Arguments Details Value Examples
The function nppoints
returns the number of prediction points on a SpatialStreamNetwork object, both in total and in each network.
1 | nppoints(ssn, use = "pids")
|
ssn |
An object of class SpatialStreamNetwork |
use |
A string indicating whether the pids or locIDs should be counted. |
To find the number of design points on a SpatialStreamNetwork object, use ndpoints
.
A list with two elements: a vector of prediction points by network, and a scalar being the total number of prediction points in the SpatialStreamNetwork object.
1 2 3 4 5 6 7 8 9 10 | set.seed(1)
s1 <- createSSN(10, binomialDesign(10),binomialDesign(10),
path = paste(tempdir(), "s1_no_reps_preds.ssn", sep = "/"), importToR = TRUE)
nppoints(s1)
s2 <- createSSN(10, binomialDesign(10, 2, "Time"), binomialDesign(10, 2, "Time"),
path = paste(tempdir(), "s2_reps_preds.ssn", sep = "/"), importToR = TRUE)
nppoints(s2) # total number of observations
nppoints(s2, "locIDs") # total number of sites
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.