View source: R/ReformatDataframe.R
modifyColNames | R Documentation |
Return reformatted data.frame with standard col names
modifyColNames(rawDataFrame, cols = TRUE, rawSep = "..", sep = "_")
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 |
A modified data.frame with col names separated by your given delimitator
library(handyFunctions) data(people) modified_people <- modifyColNames(people,rawSep = "[.][.]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.