R/table_app.R

Defines functions table_app

table_app <- 
  function(
           df,
           col = "evaluate",
           prop = T
           ){
    if(is.data.frame(df) == F)
      return()
    stat <- table(df[[col]])
    if(prop == T)
      stat <- prop.table(stat)
    stat <- dplyr::bind_rows(stat)
    return(stat)
  }
chi-med-pro/extra documentation built on July 1, 2022, 6:21 a.m.