R/tabit.R

Defines functions ti_tab1 tabit

Documented in tabit ti_tab1

#' @rdname tabit
#' @export
ti_tab1 <-
  function(...){
    .Deprecated("tabit_1/tabit_df")
    tabit(...)
  }

#' tabit
#'
#' Tabulation function that automatically performs one way tabulations as well
#' as cross tabulations depending on the input type - inheriting from
#' data.frame or not.
#'
#' @param ... parameters forwarded to tabit_1/tabit_df
#'
#' @export
#'
tabit <-
  function(...){
    if ( inherits(list(...)[[1]], "data.frame") ){
      return(tabit_x(...))
    } else {
     return(tabit_1(...))
    }
  }
petermeissner/tabit documentation built on April 2, 2020, 1:36 a.m.