selected.default: Identify Selected Names by Default

View source: R/selected.R

selected.defaultR Documentation

Identify Selected Names by Default

Description

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

See Also

Other modify: modify.default(), modify(), named(), selected()

Other interface: canonical.decorated(), classified.data.frame(), decorate.character(), decorate.data.frame(), desolve.decorated(), ggplot.decorated(), io_csv.character(), io_csv.data.frame(), io_res.character(), io_res.decorated(), io_table.character(), io_table.data.frame(), io_yamlet.character(), io_yamlet.data.frame(), is_parseable.default(), mimic.default(), modify.default(), promote.list(), read_yamlet(), resolve.decorated(), write_yamlet()

Examples

library(magrittr)
list(a = 1, b = 1:10, c = letters) %>%
selected(b:c)


yamlet documentation built on Oct. 6, 2023, 9:07 a.m.