unifyDataframe {handyFunctions}R Documentation

Reformat dataframe with the all modifiers simultaneously (colNames, rowNames and dtypes)

Description

Reformat dataframe with the all modifiers simultaneously (colNames, rowNames and dtypes)

Usage

unifyDataframe(
  rawDataFrame,
  rawRowSep = "..",
  rowSep = "_",
  rawColSep = "..",
  colSep = "_",
  changeDtype = TRUE
)

Arguments

rawDataFrame

raw data.frame

rawRowSep

raw separation deliminator of row names in raw data.frame

rowSep

the new separation deliminator of row names

rawColSep

raw separation deliminator of col names in raw data.frame

colSep

the new separation deliminator of col names

changeDtype

if change the dtypes of cols

Value

A modified data.frame with applied to above all modifiers

Examples

library(handyFunctions)
data(people)
unifyDataframe(people,rawColSep = "[.][.]")


[Package handyFunctions version 0.1.0 Index]