networkstats: summarise river network character between site pairs

View source: R/networkStats.R

networkstatsR Documentation

summarise river network character between site pairs

Description

summarise river network character between site pairs

Usage

networkstats(site1, site2, cat_data, catid_col, nextds_col, env_vars, FUN, ...)

Arguments

site1

a vector of sites for which all pairs are sought

site2

a second vector of sites for which all pairs are sought

cat_data

the name of the dataframe containing the catchment data

catid_col

the column containing the catchment ids

nextds_col

the column containing the next downstream catchment ids

env_vars

quoted vector of environmental variables for which summary stats are required

FUN

quoted scalar function to apply to env.vars (e.g. 'sum')

...

additional arguments to FUN

Value

a dataframe with site pairs and network characteristics

Note

...

Examples

data(mwcats)

all_pairs(mwcats$site[1:5])


nickbond/catchstats documentation built on July 10, 2024, 9:56 a.m.