Skip to contents

Evaluates un-named arguments in ... using select rules, returning explicit names in x. Returns all (non-empty) names by default (if no dots supplied).

Usage

# Default S3 method
selected(x, ..., expand = TRUE)

Arguments

x

object

...

to select

expand

if true, selecting nothing expands to selecting everything

Value

character: names in x

Examples

library(magrittr)
list(a = 1, b = 1:10, c = letters) %>%
selected(b:c)
#> [1] "b" "c"
#> attr(,"class")
#> [1] "selected"  "character"