R/pretty_tab.R

Defines functions pretty_tab

Documented in pretty_tab

#' Print a crosstab nicely in PDF or HTML
#'
#' @param ctab crossstab object as produced by lehmansociology::crosstab
#'
#' @keywords crosstab, print
#' @export

pretty_tab<-function(ctab){
    require(pander)
    pander(ctab$tab, keep.line.breaks = TRUE, justify = "right")

}
SOC345/lehmansociology documentation built on Sept. 19, 2017, 9:49 a.m.