fdc_values: Compute the flow duration curve (FDC)

Description Usage Arguments Value See Also

View source: R/flow_duration_curve.R

Description

Given a vector of streamflow values Q, this function computes a data.frame with two columns:

Usage

1
fdc_values(Q, n = 1000, sort = FALSE, na.rm = TRUE)

Arguments

Q

numeric vector. Streamflow values.

n

number of rows in the resulting data.frame (should be smaller than the length of Q).

sort

logical. Whether the fdc should be computed by sorting the streamflow values (TRUE) or by using the quantile function (FALSE, default).

na.rm

logical. Should the missing values be ignored? (must be TRUE if the quantile function is used and Q contains missing values)

Value

a data.frame with two columns:

See Also

fdc_slope, fdc_percentiles and fdc_slope_percentiles


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.