Skip to contents

This function reads a Runsalt output file, processes it, and returns a tidy dataframe. It separates salt and variable information, pivots the data, and adds columns for relative humidity (RH) and moles (mol).

Usage

tidyRunsalt(file_path, X_col = "RH", Y_col = "mol", Temp_value = 20)

Arguments

file_path

A character string specifying the path to the Runsalt output file.

X_col

A character string specifying the X column variable. Defaul is "RH".

Y_col

A character string specifying the Y column variable. Defaul is "mol".

Temp_value

A numeric specifying the temperature (C). Default is 20.

Value

A tibble with columns:

  • Salt The type of salt

  • RH Relative Humidity

  • mol Moles of salt

  • filename The name of the input file

Examples


if (FALSE) { # \dontrun{
result <- tidyRunsalt("path/to/runsalt/output.txt")
head(result)
} # }