Description Usage Arguments Value
Function that uniformly applies the same change to many columns. Intended to do things like converting character columns to numeric ones.
1 | alter_cols(d, col_finder, alterFunc)
|
d |
Input data frame needing column alteration. |
col_finder |
Take the whole data frame (d here) and return a vector of numeric indices of columns to alter. |
alterFunc |
Takes a single vector, returns a single vector that is an altered copy. |
A copy of the input data frame d with the given columns altered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.