R/export.sc_power.R

Defines functions export.sc_power

Documented in export.sc_power

#' @rdname export
#' @export
export.sc_power <- function(object, caption = NA, footnote = NA, filename = NA,
                            kable_styling_options = list(), 
                            kable_options = list(), 
                            round = 3,
                            ...) {
  
  kable_options <- .join_kabel(kable_options)
  kable_styling_options <- .join_kabel_styling(kable_styling_options)
  
  if (is.na(caption)) {
    caption <- c("Test power in percent")
  }
  
  if (is.na(footnote)) {
  }

  out <- object
  class(out) <- "data.frame"
 
  out <- round_numeric(out, round)
  
  table <- .create_table(
    out, 
    kable_options, 
    kable_styling_options, 
    caption = caption,
    footnote = footnote,
    ...
  )
  
  # finish ------------------------------------------------------------------
  
  if (!is.na(filename)) .save_export(table, filename)
  table
}
jazznbass/scan_develop documentation built on Sept. 9, 2024, 6:23 a.m.