prepare_solutions_input: Prepare PHREEQC Solutions Input File

View source: R/prepare_solutions_input.R

prepare_solutions_inputR Documentation

Prepare PHREEQC Solutions Input File

Description

Prepare PHREEQC Solutions Input File

Usage

prepare_solutions_input(samples_tidy, title = "", min_spaces = 3)

Arguments

samples_tidy

data.frame with samples in tidy format, i.e. parameters are columns and each row is one value

title

user defined title (default: "")

min_spaces

minimum spaces after parameter name based on longest parameter name (default: 3 spaces)

Value

input text to be used as PHREEQC input

Examples

file_samples <- system.file("extdata/phreeqc-input.csv",
package = "geosalz.phreeqc")
samples <- read.csv2(file_samples)
samples_tidy <- geosalz.phreeqc::tidy_samples(samples) %>%
geosalz.phreeqc::convert_to_numeric_lab_values()
prepare_solutions_input(samples_tidy)


KWB-R/geosalz.phreeqc documentation built on Aug. 30, 2022, 10:03 a.m.