Displaying 1 result from an estimated 1 matches for "plot_lin".
Did you mean:
plot_list
2009 Jan 15
2
Partial function application in R
...r example create and use
functions like this:
q1 <- bind( quantile, 0.25 )
lapply( some_list, q1 )
It's been a lot of work and unfortunately is not perfect. My bind applies
arguments only using positional rule. What I dream of is a function bind2
that would apply keyword arguments, like:
plot_lines <- bind2( plot, type="l" )
which would return
function(...) plot( type="l", ... )
How to do this in R?
Regards,
nosek
--
View this message in context: http://www.nabble.com/Partial-function-application-in-R-tp21487269p21487269.html
Sent from the R help mailing list arch...