mean.rivernet {rivernet}R Documentation

Calculates the length and stream order - weighted average of a given reach property

Description

Calculates the length and stream order - weighted average of a given reach property.

Usage

## S3 method for class 'rivernet'
mean(x,y=NA,na.rm=FALSE,...)

Arguments

x

Object of class "rivernet" e.g. read by the function rivernet.read.

y

Numerical vector of properties of reaches to be averaged. If no values are provided, the function returns the average length of the reaches.

na.rm

Indication whether NAs should be removed.

...

.

Value

A scalar representing the weighted mean.

See Also

rivernet.read, upstreamconnectivity.rivernet, adjacentreaches.rivernet,
utility.


[Package rivernet version 1.2.3 Index]