Re: [R] Looping through multiple datasets already in memory

2011-09-09 Thread MatAra
Thanks for the valuable comments Greg and Patrick! Oddly enough, I am doing something very close to "Portfolio analysis with random selection"... Justin, thanks for recommending google - fantastic stuff. Cheers, Mateo -- View this message in context: http://r.789695.n4.nabble.com/Looping-throug

[R] Looping through multiple datasets already in memory

2011-09-09 Thread MatAra
Gents, I have the following loop: for (i in (seq(along=Draw.1[,1]))) {print(i)} # from 1 - 5 (counter) for (i in (seq(along=Draw.1[,1]))) {print(Draw[i,4])} # from the 1 - column (passes parameter per column) Now: I have multiple Draws [Draw.1 - Draw.100] in memory with different "orders" Quest

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.

[R] Passing function arguments to dataset names

2011-05-23 Thread MatAra
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

Re: [R] pass character vector in instrument field of get.hist.quote function

2011-05-12 Thread MatAra
Thanks a lot for your reply Jim. I want to be able to run flex(xx-xx-,xx-xx-) at multiple date ranges, but couldn't make it work because I wasn't using the correct syntax. I will give it a try and post my findings (not too spectacular, of course). Thanks again, Mateo -- View this mes

Re: [R] pass character vector in instrument field of get.hist.quote function

2011-05-11 Thread MatAra
Hello gentlemen, This is a great discussion. Thank you all for providing useful answers. I am also new to R, was working mostly with SAS before, and have a question regarding passing arguments to R functions that are wrapped in quotes. Using the previous example: getSymbols(tickers, from="start