Easily save the full output of the `mimsy` calculation function to a nicely-formatted, multi-tab Excel .xlsx file.

mimsy.save(x, file)

Arguments

x

object to be written to file, the output of `mimsy` function

file

desired file name with .xlsx ending. Example: "mimsyCalculations.xlsx"

Value

Outputs an excel workbook to the user's working directory

Examples

data <- read.csv(file = system.file("extdata", "data.csv", package = "mimsy"), header = TRUE, stringsAsFactors = FALSE) results <- mimsy(data, baromet.press = 981.2, units = 'hPa')
#> Calculated dissolved concentrations based on a two-point temperature standard.
#> Standard 1: 24.9 C, Standard 2: 26.3 C
mimsy.save(results, file = file.path(tempdir(), "results.xlsx"))