Learn R Programming

elfgen (version 2.3.4)

bkpt_ymax: Identify breakpoint location with Ymax

Description

This applies the Ymax elfgen method. This approach treats the maximum observed species richness value as the breakpoint. This function begins by locating the point with the highest y-value in the full dataset, then utilizing the associated x-value as the breakpoint.

Usage

bkpt_ymax(watershed.df)

Value

Breakpoint value is returned

Arguments

watershed.df

A dataframe of sites with ecological and hydrologic data

Examples

Run this code
# \donttest{
# We don't run this example by R CMD check, because it takes >10s

watershed.df <- elfdata(watershed.code = '0208020104',
 ichthy.localpath = tempdir(), use_cache = FALSE)
bkpt_ymax(watershed.df)
# }

Run the code above in your browser using DataLab