Description Usage Arguments Value Examples
modify default arguments of a function
1 | modifyFunction(f, ...)
|
f |
A function to be modified |
... |
Arguments an values key pairs |
A function with modified default values
1 2 3 | # function twoClassSummary has an argument 'metric' which defaults to long vector of metrics,
# to make a numer twoClassSummary function that returns only 'Kappa' and 'AUC', we can do
newTwoClassSummary <- modifyFunction(twoClassSummary, metric = c('Kappa', 'AUC'));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.