Skip to contents

Returns the subset of a basin summary data frame containing only local maxima.

Usage

# S3 method for class 'basin_summary'
lmax(object, ...)

Arguments

object

An object of class "basin_summary" returned by summary.basins_of_attraction.

...

Additional arguments (currently unused).

Value

A data frame of class "basin_summary" containing only rows where type == "max", preserving all columns from the original summary.

Examples

if (FALSE) { # \dontrun{
basins <- compute.basins.of.attraction(adj.list, weight.list, y)
summ <- summary(basins, adj.list, edgelen.list)

# Extract only local maxima
max.summ <- lmax(summ)

# Work with maxima only
print(max.summ)
} # }