Description Usage Arguments Value Examples
View source: R/tidy_up-remove_prefix.R
Remove prefices from column names.
1 | remove_prefix(data, prefices, sep = ".")
|
data |
data frame |
prefices |
vector of prefices to be removed from column names |
sep |
prefix separator |
data frame with updated column names
1 2 3 | x <- data.frame(main.temp = 1:10, sys.msg = "OK", cnt = 10:1)
names(x)
remove_prefix(x, c("main", "sys")) %>% names()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.