| 1 |
#' @templateVar class table |
| 2 |
#' @template title_desc_tidy |
| 3 |
#' |
| 4 |
#' @description Deprecated. Please use [tibble::as_tibble()] instead. |
| 5 |
#' |
| 6 |
#' @param x A [base::table] object. |
| 7 |
#' @template param_unused_dots |
| 8 |
#' |
| 9 |
#' @return A [tibble::tibble] in long-form containing frequency information |
| 10 |
#' for the table in a `Freq` column. The result is much like what you get |
| 11 |
#' from [tidyr::pivot_longer()]. |
| 12 |
#' |
| 13 |
#' @details Directly calls [tibble::as_tibble()] on a [base::table] object. |
| 14 |
#' |
| 15 |
#' @seealso [tibble::as_tibble.table()] |
| 16 |
#' @export |
| 17 |
tidy.table <- function(x, ...) { |
| 18 |
.Deprecated(new = "tibble::as_tibble()") |
| 19 |
as_tibble(x) |
| 20 |
} |