R/z_finalize_tab.R

Defines functions .finalize_tab

.finalize_tab = function(df1) {
  assert_that(is.data.frame(df1))

  txt = attr(df1, "title")
  txt = paste0(txt, " {", getOption('surveytable.survey_label'), "}")
  attr(df1, "title") = txt
  rownames(df1) = NULL
  class(df1) = c("surveytable_table", "data.frame")
  df1
}

Try the surveytable package in your browser

Any scripts or data that you put into this service are public.

surveytable documentation built on Aug. 26, 2025, 1:07 a.m.