View source: R/ReformatDataframe.R
unifyDataframe | R Documentation |
Reformat dataframe with the all modifiers simultaneously (colNames, rowNames and dtypes)
unifyDataframe( rawDataFrame, rawRowSep = "..", rowSep = "_", rawColSep = "..", colSep = "_", changeDtype = TRUE )
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 |
A modified data.frame with applied to above all modifiers
library(handyFunctions) data(people) unifyDataframe(people,rawColSep = "[.][.]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.