lower_factors: Factor labels to lower (or upper) case.

Description Usage Arguments Value See Also Examples

Description

lower_factors acts on columns of a data frame and converts factor labels to lower case (by default) or upper case (with case = "upper"). lower_factors plays nice with %>% from dplyr/magrittr.

Usage

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

Arguments

.data

A data frame.

...

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

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_names_; lower_names

Examples

1
2
3
4
5
6
7
lower_factors(iris, Species, case = "upper")

# Lower case is default
lower_factors(iris)

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

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