nnetwork: Find the number of distinct networks in a...

Description Usage Arguments Value Examples

View source: R/nnetwork.R

Description

Calculates the number of networks are present inside of a SpatialStreamNetwork object.

Usage

1
nnetwork(ssn)

Arguments

ssn

an object of class SpatialStreamNetwork

Value

a numeric scalar

Examples

1
2
3
4
s <- createSSN(c(10, 10), binomialDesign(c(2, 2)),
path = paste(tempdir(), "tmp.ssn", sep = "/"), importToR = TRUE)
nnetwork(s) # reports 2
     

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