clean.df: Clean the names of a data frame

Description Usage Arguments Details Value

View source: R/clean.df.R

Description

Clean up a data frame by changing all column names to lower case, removing spaces and punctuation.

Usage

1
clean.df(df, keep.underscore = TRUE, pidmpattern = "bannerid|banner_id")

Arguments

df

a data frame

keep.underscore

a logical value indicating whether underscores be kept or removed

pidmpattern

a regular expression to be matched against the names of df. Set to NULL to turn off pattern mathing.

Details

If no column named pidm is found and pidmpattern is not NULL, then we look if there's only

Value

a data frame of class tbl_df.


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.