mimsy.save: 'mimsy.save' Save output to an Excel workbook

View source: R/mimsy.save.R

mimsy.saveR Documentation

mimsy.save Save output to an Excel workbook

Description

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

Usage

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')

mimsy.save(results, file = file.path(tempdir(), "results.xlsx"))


michelleckelly/mimsy documentation built on Feb. 23, 2024, 10:15 a.m.