getPoolInformation: Determines basic information about a sequence of pools

Description Usage Arguments Details Value

Description

Identifies pool base points, gives ids to individual pools, and numbers points within a pool. from a matrix of residual pool depths.

Usage

1
getPoolInformation(dimensions)

Arguments

x

a lower triangular matrix of residual pool dimensions.

Details

The function first identifies which point on the thalweg profile is in a pool. For a logical vector, the function then identifies runs in the logical vector. Then it identifies the first point in each run. Then sets the non pools to FALSE. Then identifies which points are still TRUE and substracts 1 to get the previous point.

Value

a data.frame of pool information.


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.