onarg | R Documentation |
change first argument of a function
onarg(f, arg)
f |
the function |
arg |
the argument to be called as the first argument |
a function that calls f
with arg
as the first argument.
wargs
, dostats
, and apply
formals(runif) onarg(runif, 'max')(1:10, 1) onarg(runif, 'max')(1:10, 10) #another version of contains onarg(`%in%`, 'table')(letters, 'y')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.