calc_bfi: Function to return the base flow index for a given data frame

View source: R/calc_bfi.R

calc_bfiR Documentation

Function to return the base flow index for a given data frame

Description

This function accepts a vector of daily mean discharge values and calculates the base flow index of the daily flow values for the entire record

Usage

calc_bfi(x)

Arguments

x

A numeric vector of consecutive daily mean discharge values

Details

The mean for a 7 day right-aligned moving window is calculated for the supplied flow vector. The baseflow index is calculated as the minimum 7day average flow divided by the mean flow

Value

calc_bfi numeric value of the base flow index for the given data frame

Examples

x<-sampleData$discharge
calc_bfi(x)

USGS-R/EflowStats documentation built on Sept. 30, 2023, 9:31 p.m.