Learn R Programming

tidywater (version 0.7.0)

convert_watermg: Convert a `water` class object to a dataframe with ions in mg/L or ug/L

Description

This function is the same as convert_water except it converts the units of following slots from M to mg/L: na, ca, mg, k, cl, so4, hco3, co3, h2po4, hpo4, po4, ocl, bro3, f, fe, al. These slots are converted to ug/L: br, mn. All other values remain unchanged.

Usage

convert_watermg(water)

Value

A data frame containing columns for all non-NA water slots with ions in mg/L.

Arguments

water

A water class object

Examples

Run this code
water_defined <- define_water(7, 20, 50, 100, 80, 10, 10, 10, 10, tot_po4 = 1) %>%
  convert_watermg()

Run the code above in your browser using DataLab