Re: [R] Partial function application in R

2009-03-12 Thread nosek
in context: http://www.nabble.com/Partial-function-application-in-R-tp21487269p22474710.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Partial function application in R

2009-01-17 Thread Wacek Kusnierczyk
nosek wrote: Hello, soon after my last posting to this thread I stumbled upon the do.call function and came to the very much the same version as yours. It is good! at least for the sort of tasks as in the examples below. but i haven't tested it beyond those, and in r you shouldn't rely

[R] Partial function application in R

2009-01-15 Thread nosek
Hello, in a desperate desire of using partial function application in R I fried out the following piece of code: bind - function( f, ... ) { args - list(...) function(...) f( ..., unlist(args) ) } Its purpose, if not clear, is to return a function with part of its arguments bound

Re: [R] Partial function application in R

2009-01-15 Thread David Winsemius
:25 PM, nosek wrote: Hello, in a desperate desire of using partial function application in R I fried out the following piece of code: bind - function( f, ... ) { args - list(...) function(...) f( ..., unlist(args) ) } Its purpose, if not clear, is to return a function with part of its

Re: [R] Partial function application in R

2009-01-15 Thread Gabor Grothendieck
( 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 archive at Nabble.com

Re: [R] Partial function application in R

2009-01-15 Thread nosek
machinery. -- David Winsemius On Jan 15, 2009, at 4:25 PM, nosek wrote: Hello, in a desperate desire of using partial function application in R I fried out the following piece of code: bind - function( f, ... ) { args - list(...) function(...) f( ..., unlist(args) ) } Its

Re: [R] Partial function application in R

2009-01-15 Thread Gabor Grothendieck
, nosek nospa...@interia.pl wrote: Hello, in a desperate desire of using partial function application in R I fried out the following piece of code: bind - function( f, ... ) { args - list(...) function(...) f( ..., unlist(args) ) } Its purpose, if not clear, is to return a function with part

Re: [R] Partial function application in R

2009-01-15 Thread Wacek Kusnierczyk
(1:10, 11:20, xlim = c(1,5)) Still seems to get the unnamed optional y argument to the plotting machinery. -- David Winsemius On Jan 15, 2009, at 4:25 PM, nosek wrote: Hello, in a desperate desire of using partial function application in R I fried out the following piece