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(...))
    }
  }

Try the tabit package in your browser

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

tabit documentation built on March 31, 2020, 5:20 p.m.