Re: [R] Passing function arguments to dataset names

2011-05-23 Thread MatAra
Janko, Thanks a lot for your reply. Option 2 is exactly what I was looking for. Mil gracias! Mateo -- View this message in context: http://r.789695.n4.nabble.com/Passing-function-arguments-to-dataset-names-tp3545567p3545741.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Passing function arguments to dataset names

2011-05-23 Thread Janko Thyson
Hi Mateo, not sure if I totally get what you're after, but maybe this helps: SharpeRatio.annualized <- function(roc){ print("I'm computing the Sharpe Ratio") return() } MyF <- function(Tic, price){ print("Option 1") expr <- expression(Ratio.Tic <- SharpeRatio.annualized(ro