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.
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
Hello,
I am stuck in a relatively simple procedure and was wondering if anybody
knows the answer. I am a relatively new R user.
How do I use an argument of a custom function in the name of a dataset in R?
For example, I have the function:
MyF <- function(Tic, price){
x
3 matches
Mail list logo