diff --git a/R/tabyl.R b/R/tabyl.R index 18fa329b..c0048fc8 100644 --- a/R/tabyl.R +++ b/R/tabyl.R @@ -36,7 +36,7 @@ tabyl <- function(...) UseMethod("tabyl") #' @inheritParams tabyl #' @export -#' @describeIn tabyl Create a frequency table from a vector. +#' @rdname tabyl tabyl.default <- function(vec, sort = FALSE, show_na = TRUE, ...) { @@ -98,9 +98,7 @@ tabyl.default <- function(vec, sort = FALSE, show_na = TRUE, ...) { #' @inheritParams tabyl #' @export -#' @describeIn tabyl Create a frequency table from a data.frame, -#' supplying the unquoted name of the column to tabulate. - +#' @rdname tabyl tabyl.data.frame <- function(.data, ...){ # collect dots diff --git a/man/tabyl.Rd b/man/tabyl.Rd index 3ceaf679..bf6a68d4 100644 --- a/man/tabyl.Rd +++ b/man/tabyl.Rd @@ -35,13 +35,6 @@ Create a frequency table of a variable, returned as a data.frame. It shows coun 2) A data.frame can be provided as the first argument, followed by an unquoted column name to tabulate. This enables passing in a data.frame from a \code{\%>\%} pipeline, like \code{mtcars \%>\% tabyl(gear)}. } -\section{Methods (by class)}{ -\itemize{ -\item \code{default}: Create a frequency table from a vector. - -\item \code{data.frame}: Create a frequency table from a data.frame, -supplying the unquoted name of the column to tabulate. -}} \examples{ # Calling on a vector: val <- c("hi", "med", "med", "lo")