Description Usage Arguments Details Value Examples
View source: R/prefix_operation.R
Subtracts the indicated prefix from all the columns of the dataframe.
1 | substract_prefix_from_all_column(dataframe, prefix)
|
dataframe |
data.frame. The dataframe from which the column prefixes must be removed. |
prefix |
string. The prefix to subtract from column names. |
substract_prefix_from_all_column subtracts the specified prefix from all the columns of the dataframe and returns a new dataframe.
returns a new dataframe identical but without prefix to the column names.
1 2 3 4 5 6 | A_Column1 <- c(1, 2)
A_Column2 <- c(3, 4)
A_Column3 <- c(5, 6)
df <- data.frame(A_Column1, A_Column2, A_Column3)
newdf <- substract_prefix_from_all_column(df, "A_")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.