diff --git a/R/top_levels.R b/R/top_levels.R index 67e98d71..87320c11 100644 --- a/R/top_levels.R +++ b/R/top_levels.R @@ -5,7 +5,7 @@ #' #' @param input_vec The factor variable to tabulate. #' @param n Number of levels to include in top and bottom groups -#' @param show_na Should cases where the variable is NA be shown? +#' @param show_na Should cases where the variable is `NA` be shown? #' @return A `data.frame` (actually a `tbl_df`) with the frequencies of the #' grouped, tabulated variable. Includes counts and percentages, and valid #' percentages (calculated omitting `NA` values, if present in the vector and diff --git a/man/top_levels.Rd b/man/top_levels.Rd index 80d9571b..821c02c9 100644 --- a/man/top_levels.Rd +++ b/man/top_levels.Rd @@ -12,7 +12,7 @@ top_levels(input_vec, n = 2, show_na = FALSE) \item{n}{Number of levels to include in top and bottom groups} -\item{show_na}{Should cases where the variable is NA be shown?} +\item{show_na}{Should cases where the variable is \code{NA} be shown?} } \value{ A \code{data.frame} (actually a \code{tbl_df}) with the frequencies of the