Description Usage Arguments Value
When dplyr's column-selection functions starts_with
or matches
fail to
find a column, no columns are returned. These alternative versions return all
available columns when no match is found. The result is that select(df, V1, maybe_starts_with("V2")
still returns V1 even if there is no V2.
1 2 3 |
... |
arguments passed on to the dplyr select helpers |
the column indices for matching columns if any are found; otherwise, an empty numeric vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.