select_list: Select/rename variables by name

Description Usage Arguments See Also Examples

Description

select and rename methods for lists. The select method is defined for lists, while when working with objects of other classes it uses dplyr's select.

Usage

1
2
3
4
5
6
select_list(.data, ..., warn = TRUE)

select(.data, ..., warn = TRUE)

## S3 method for class 'list'
rename(.data, ...)

Arguments

.data

a list.

...

one or more unquoted expressions separated by commas. You can treat variable names like they are positions. Positive values select variables; negative values to drop variables. If the first expression is negative, select() will automatically start with all variables.

warn

throw warnings when encountering errors in selecting variables (FALSE by default).

See Also

select, rename

Examples

1
2
3
4
5
6
7
8
9
as_lov(mtcars) %>%
  select(mpg, cyl)

as_lov(mtcars) %>%
  rename(XXX_mpg = mpg)

as_lol(mtcars) %>%
  select(mpg, cyl) %>%
  .[1:5]

twolodzko/lolplyr documentation built on May 14, 2019, 8:22 a.m.