R/viewer.R

library(xtable)

#' show a dataframe as html in the viewer so you can copy and paste into a
#' spreadsheet
view <- function(df){
  f <- tempfile(fileext = ".html")
  print(xtable(df),file=f,type="html")
  getOption("viewer")(f)
  invisible(f)
}
mlgrm/svyr documentation built on May 13, 2019, 11:08 a.m.