calculate_PI | R Documentation |
This function calculates the PI for water quality.
calculate_PI(df, convert_units = FALSE)
df |
dataframe containing the necessary columns, |
convert_units |
Logical, indicating whether to convert units from mg/l to meq/l. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.