View source: R/append-charnum-cols.R
Append data.frame with character and numeric columns
1 | append_charnum_cols(x, cols, old = "_c", new = "_n", beside = TRUE)
|
x |
A data.frame |
cols |
A vector of column names to be transformed from character to numeric. |
old, new |
A suffix added to the old/new columns; NULL will not change name; these cannot be the same |
beside |
Logical, if TRUE will add new columns beside old; otherwise will move to the end. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.