rbi_df: Create a dataframe with the calculated annual Richards Baker...

View source: R/data_processing.R

rbi_dfR Documentation

Create a dataframe with the calculated annual Richards Baker Flashiness Index (RBI) for specified sites and duration

Description

Create a dataframe with the calculated annual Richards Baker Flashiness Index (RBI) for specified sites and duration

Usage

rbi_df(site_num, startDate, endDate)

Arguments

site_num

a "character" vector that contains the study site numbers.

startDate

a "date" following the Y-m-d format.

endDate

a "date" following the Y-m-d format.

Value

returns a data.frame with the waterYear variable and RBI values for specified sites saved in columns.

Examples

# return a dataframe with annual RBI values for specified USGS gauge sites over specified duration
library(easyrbi)
rbi_df(c("01564500", "01567000"), "1970-10-01", "1980-09-30")

amutaya/easyrbi documentation built on May 9, 2022, 4:04 p.m.