modifyColNames {handyFunctions}R Documentation

Return reformatted data.frame with standard col names

Description

Return reformatted data.frame with standard col names

Usage

modifyColNames(rawDataFrame, cols = TRUE, rawSep = "..", sep = "_")

Arguments

rawDataFrame

Raw data.frame input

cols

Specific col names or indexes what you want to reformat (default: TRUE, use all cols)

rawSep

Raw odd separation symbol in col names of raw data.frame. Note: it supports regEx (regular expression), so "." means all possible symbols. If you want to use the "." dot notation, please use "[.]".

sep

Separation symbol in col names of modified data.frame

Value

A modified data.frame with col names separated by your given delimitator

Examples

library(handyFunctions)
data(people)
modified_people <- modifyColNames(people,rawSep = "[.][.]")


[Package handyFunctions version 0.1.0 Index]