modifyRowNames: Return reformatted data.frame with standard row names

View source: R/ReformatDataframe.R

modifyRowNamesR Documentation

Return reformatted data.frame with standard row names

Description

Return reformatted data.frame with standard row names

Usage

modifyRowNames(rawDataFrame, rows = TRUE, rawSep = "..", sep = "_")

Arguments

rawDataFrame

Raw data.frame input

rows

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

rawSep

Raw odd separation symbol in row 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 row names of modified data.frame

Value

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

Examples

library(handyFunctions)
data(people)
modifyRowNames(people)


handyFunctions documentation built on Aug. 22, 2022, 5:06 p.m.