Skip to content

clarification for names and names_sep in docstring #1606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions R/separate-wider.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
#' @inheritParams unnest_longer
#' @param cols <[`tidy-select`][tidyr_tidy_select]> Columns to separate.
#' @param names_sep If supplied, output names will be composed
#' of the input column name followed by the separator followed by the
#' of the input column name, followed by this separator, followed by the
#' new column name. Required when `cols` selects multiple columns.
#'
#' For `separate_wider_delim()` you can specify instead of `names`, in which
#' case the names will be generated from the source column name, `names_sep`,
#' and a numeric suffix.
#' @param names For `separate_wider_delim()`, a character vector of output
#' If `names` is not specified, the new column names will default to a numeric suffix after the separator.
#' @param names For `separate_wider_delim()` and `separate_wider_position()`, a character vector of output
#' column names. Use `NA` if there are components that you don't want
#' to appear in the output; the number of non-`NA` elements determines the
#' number of new columns in the result.
Expand Down