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.
Passing function arguments to dataset names
3 messages · MatAra, Janko Thyson
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110524/26118176/attachment.pl>
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.