From d83f406b6c95a1fd71cae0a68fa708e37c0e037a Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Fri, 11 Oct 2024 10:13:31 +1100 Subject: [PATCH] Fix typo in as_factor() docs, close #748 --- R/as_factor.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/as_factor.R b/R/as_factor.R index 62daf6cc..0a285bd2 100644 --- a/R/as_factor.R +++ b/R/as_factor.R @@ -56,7 +56,7 @@ as_factor.data.frame <- function(x, ..., only_labelled = TRUE) { #' Labels are sorted by value. #' * "both": like "default", but pastes together the level and value #' * "label": use only the labels; unlabelled values become `NA` -#' * "values: use only the values +#' * "values": use only the values #' @rdname as_factor #' @export as_factor.haven_labelled <- function(x, levels = c("default", "labels", "values", "both"),