Learn R Programming

RiverLoad (version 1.0.3)

annual.mean: Annual mean of flow records

Description

The function returns the annual arithmetic mean of flow records. It is also possible to obtain the standard deviation.

Usage

annual.mean(flow.data, standev)

Arguments

flow.data

A dataframe with a first column with DateTime information in standard format(yyyy-mm-dd HH:MM:SS) labeled "datetime" and a second column with flow records labelede "flow".

standev

An optional argument. If the user specifies "sd", the function will return the value of the standard deviation for each row.

Value

A data frame with two columns: the first with the years (labeled "year") and the second with annual mean flow data (labeled "flow"). If the user has specified "sd", there is a third column with standard deviation value for each row (labeled "sd").

See Also

daily.mean monthly.mean monthly.year.mean

Examples

Run this code
# NOT RUN {
data("flow.data1")
annual.mean(flow.data1)
annual.mean(flow.data1, "sd")
# }

Run the code above in your browser using DataLab