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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to