Description Usage Arguments Examples
Given a dataframe, a vector of column numbers, and a string, this adds the string onto each defined column name. Returns dataframe with pasted names.
1 | paste_func(df, cols, string)
|
df |
A DataFrame |
cols |
A vector of column numbers to paste the string onto |
string |
The string to paste onto the beginning of each specified column name |
1 | paste_func(iris, c(1:ncol(iris)), "PASTETHIS_")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.