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
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
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
: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
( 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
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
, 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
(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
8 matches
Mail list logo