knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
install.packages("pak") pak::pak("BhavShah01/SaltsR")
library(SaltsR)
The SaltsR package provides an application to test its calculations. This interactive tool allows you to evaluate the package's output using ion chromatography data.
To launch the application, simply run the following command in R:
runSaltsR_app()
This will open the SaltsR application, where you can input your ion chromatography data and explore the package's functionality.
Use the function below with the following inputs to perform a salt balance. The full outputs of the function are shown underneath.
fun_salt_balance(sample_name = "Pathway 2", dry_g = 0.801, water_ml = 100, chloride_ppm = 14.651, nitrate_ppm = 17.339, sulfate_ppm = 39.923, sodium_ppm = 2.027, potassium_ppm = 2.04, calcium_ppm = 49.809, magnesium_ppm = 0.581)
fun_salt_balance(sample_name = "Pathway 2", dry_g = 0.801, water_ml = 100, chloride_ppm = 14.651, nitrate_ppm = 17.339, sulfate_ppm = 39.923, sodium_ppm = 2.027, potassium_ppm = 2.04, calcium_ppm = 49.809, magnesium_ppm = 0.581) |> dplyr::glimpse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.