Skip to content

Commit

Permalink
Tweak documentation of return value
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jul 23, 2021
1 parent 885c191 commit 4f36d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/enframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @param name,value Names of the columns that store the names and values.
#' If `name` is `NULL`, a one-column tibble is returned; `value` cannot be `NULL`.
#'
#' @return A [tibble] with two columns (if `name` is not `NULL`, the default)
#' @return Fpr `enframe()`, a [tibble] with two columns (if `name` is not `NULL`, the default)
#' or one column (otherwise).
#' @export
#'
Expand Down Expand Up @@ -59,6 +59,7 @@ vectbl_set_names <- function(x, names = NULL) {
#' `deframe()` converts two-column data frames to a named vector or list,
#' using the first column as name and the second column as value.
#' If the input has only one column, an unnamed vector is returned.
#' @return For `deframe()`, a vector (named or unnamed).
#' @export
#' @examples
#' deframe(enframe(3:1))
Expand Down
4 changes: 3 additions & 1 deletion man/enframe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f36d63

Please sign in to comment.