calculate_Napercent | R Documentation |
This function calculates the percentage of sodium (Na
calculate_Napercent(df, convert_units = FALSE)
df |
A dataframe containing the necessary columns. |
convert_units |
Logical indicating whether to convert values from mg/l to meq/l. |
A numeric vector containing Na percent values.
df <- data.frame(Ca = c(10, 20, 30),
Mg = c(5, 10, 15),
Na = c(15, 25, 35), K = c(3, 5, 6))
calculate_Napercent(df, convert_units = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.