calculate_PI {iwaqr}R Documentation

Calculate PI

Description

This function calculates the PI for water quality.

Usage

calculate_PI(df, convert_units = FALSE)

Arguments

df

dataframe containing the necessary columns,

convert_units

Logical, indicating whether to convert units from mg/l to meq/l.

Value

A numeric vector representing the permeability index (PI) for each row in the dataframe, @examples df <- data.frame(Ca = c(10, 20, 30), Mg = c(5, 10, 15), Na = c(8, 16, 24), Na = c(15, 25, 10), K = c(2, 6, 4), HCO3 = c(15, 30, 45), SO4 = c(110, 115, 88), CO3 = c(0, 0, 0), Cl = c(42, 25, 16)), calculate_PI <- function(df, convert_units = FALSE)


[Package iwaqr version 1.8.4 Index]