clean_names: Remove unwanted characters from the column names

Description Usage Arguments Value

View source: R/EZ.R

Description

Sometimes we may get a dataframe wich have column names have characters like !&()/.," " These are unwanted obviously coz they make it impossible to reference the column using $ operator or while pipelining So this function removes those characters from the column names.

Usage

1
clean_names(data, idf = c(), sep = "_", use.def = TRUE)

Arguments

data

A data frame

idf

List of unwanted characters/ Identifier

sep

Character to substitute/ Separator

use.def

Boolean whether to use the default identifier list

Value

Dataframe with removed characters from the column names


light2802/EZ documentation built on Dec. 21, 2021, 10:47 a.m.