water_supply: water_supply

Description Usage Arguments Value Author(s)

Description

A list that outputs for each year, for a specified location, whether the water supply is good, okay, or bad.

Usage

1
water_supply(rain_data, location = "Brisbane", plot_out = FALSE)

Arguments

rain_data

data frame with columns Date, Location, Rainfall

location

specified location in the data frame you want to see, default is Brisbane

plot_out

specify if you want a plot proudced, default is FALSE

Value

Returns a list containing,

Year

Each year within the dataset

Location

Location specified

annual_rainfall

Sum of the rainfall for a year

Water_supply_level

Whether or not the water supply is good, okay, or bad

\plot

Annual Rainfall PlotShows a plot of annual rainfall in a specified location

Author(s)

Gage Clawson


gclawson1/computingpackage documentation built on June 15, 2019, 2:43 p.m.