Extract Local Maxima from Basin Summary
Source:R/compute_basins_of_attraction.R
lmax.basin_summary.RdReturns the subset of a basin summary data frame containing only local maxima.
Usage
# S3 method for class 'basin_summary'
lmax(object, ...)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)
} # }