lower_names: Column names to lower (or upper) case.

Description Usage Arguments Value See Also Examples

Description

lower_names acts on the column names of a data frame and converts them to lower case (by default) or upper case (with case = "upper"). lower_names plays nice with %>% from dplyr/magrittr.

Usage

1
lower_names(.data, ..., case = "lower")

Arguments

.data

A data frame.

...

Comma separated list of unquoted expressions. Defaults to all columns.

case

A character vector "upper" or "lower" (default). Note: case must be a named argument if specified (e.g. case = "upper").

Value

A data frame.

See Also

Other case functions: lower_factors_; lower_factors; lower_names_

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
lower_names(iris, case = "upper")

# Lower case is default
lower_factors(iris)

#Specific columns
lower_names(iris, Sepal.Length, Species)

# Standard Evaluation with lower_names_
lower_factors_(iris, ~Species, case = "upper")

geanes/bioanth documentation built on May 17, 2019, 12:15 a.m.