lcnames: Convert names of a data frame to lower case

View source: R/btools_dplyrtools.r

lcnamesR Documentation

Convert names of a data frame to lower case

Description

Convert names of a data frame to lower case, return as data frame. This works with the pipe operator introduced in R 4.1.

Usage

lcnames(df)

Arguments

df

Data frame.

Value

Data frame with lower-case names

Examples

library(dplyr)
df <- tibble(YEAR=2000:2010, X=10:20, y=30:40)
df
df |>
  lcnames()

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.