How to pass a function and its arguments through a wrapper function in R? Similar to *args and *kwargs in python?

Up vote 3 down vote favorite share g+ share fb share tw.

I want to write a wrapper function in R. I should take a function and its arguments. Do something, and then call the function with the supplied arguments.

I know how to do it in python, but I search for an implementation in R. In python I would write: def wrapper(func, *args, **kwargs): #do something here return func(*args, **kwargs) Thank you Nico python r argument-passing link|improve this question asked Nov 17 '11 at 10:47Nico473.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions