Description Usage Arguments Examples
This function changes multiple colnames of a df there is a range match option
1 2 | df.name.change(df, original_names, new_names, range_match = F, fixed = F,
invert = F)
|
df |
a data.frame |
original_names |
a colname/ an array of colnames you want to change |
new_names |
a target colname/ an array of target colnames, must match the number of names in original_names |
range_match |
just like in Excel match(,,1), default is False |
fixed: |
only applicable if range_match = T, used in grep, please see grep for purpose |
invert: |
only applicable if range_match = T, used in grep, please see grep for purpose, essentially making original_names columns you do not want to change name |
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.