Skip to content

Commit 4f36d63

Browse files
committed
Tweak documentation of return value
1 parent 885c191 commit 4f36d63

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

R/enframe.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' @param name,value Names of the columns that store the names and values.
1212
#' If `name` is `NULL`, a one-column tibble is returned; `value` cannot be `NULL`.
1313
#'
14-
#' @return A [tibble] with two columns (if `name` is not `NULL`, the default)
14+
#' @return Fpr `enframe()`, a [tibble] with two columns (if `name` is not `NULL`, the default)
1515
#' or one column (otherwise).
1616
#' @export
1717
#'
@@ -59,6 +59,7 @@ vectbl_set_names <- function(x, names = NULL) {
5959
#' `deframe()` converts two-column data frames to a named vector or list,
6060
#' using the first column as name and the second column as value.
6161
#' If the input has only one column, an unnamed vector is returned.
62+
#' @return For `deframe()`, a vector (named or unnamed).
6263
#' @export
6364
#' @examples
6465
#' deframe(enframe(3:1))

man/enframe.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)