[R] Passing function arguments to dataset names
MatAra
mateoarana at gmail.com
Mon May 23 23:31:53 CEST 2011
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){
xxxxx
xxxxx
xxxxx
Ratio.Tic<- SharpeRatio.annualized(roc)
}
I would like to have a dataset that's labelled Ratio.MSFT, Ratio.XOM,
Ratio.IBM...etc. The objective is to append multiple Ratio.Tic datasets that
contains all the ratios in one single data.
Thanks in for your time!
Mateo
--
View this message in context: http://r.789695.n4.nabble.com/Passing-function-arguments-to-dataset-names-tp3545567p3545567.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list