Coder Social home page Coder Social logo

bacteria's Introduction

Bacteria - Functions for Indicator Bacteria Compliance Analysis in California

Bacteria is an R package that contains functions that can be used to evaluate compliance with water quality objectives for indicator bacteria (E. coli, Enterococcus, Total Coliform, and Fecal Coliform). The primary use for these functions is for the evaluation of bacteria water quality monitoring data within the jursidction of the Los Angeles Regional Water Quality Control Board.

Installation

  1. If not installed already, install the devtools package. This can be done using the following: install.packages("devtools")
  2. Install the bacteria package with the following: devtools::install_github("chrislopez28/bacteria").

Using the bacteria package

bact_check

The bact_check function takes in a data frame of bacteria monitoring data and outputs a list of data frames (each element of the list corresponding to a unique monitoring location) that contains the results of the analysis.

Format of input df

The bact_check requires that the initial input data frame has the following variables:

  • StationCode - a character vector
  • SampleDate - a date vector
  • WeatherCondition - a character vector
  • AnalyteName - a character vector
  • Result - a numeric vector
  • ResQualCode - a character vector
  • MDL - a numeric vector
  • RL - a numeric vector

ann_exceeds

The ann_exceeds function calculates the number of Annual Exceedance Days. The arguments for this function are the same as that of the bact_check function.

Temporal Heatmap Visualizations

The bact_heatmap function creates a heatmap that summarizes compliance with bacteria water quality objectives while also providing information on sampling dates and weather conditions.

An Example Temporal Heatmap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.