Displaying 2 results from an estimated 2 matches for "symbolid".
Did you mean:
symbolic
2008 Nov 13
1
Unflatten a table in R
...function
or method to complete this task, (hopefully efficiently).
My data table is full of historical stock-market data. Daily, each
ticker-symbol has four data points: open, close, high, and low.
Right now the table looks like the following. (Note, each ticker symbol has
a unique numeric 'SymbolID'.
SymbolID MarketDate Open Close High Low
1 4 11/3/2008 1.5790 1.5788 1.5790 1.5788
2 4 11/4/2008 1.5891 1.5892 1.5892 1.5891
3 4 11/5/2008 1.5937 1.5931 1.5937 1.5931
4 4 11/6/2008 1.5727 1.5727 1.5727 1.5727
5 4 11/7/2008 1.5673 1.5669...
2008 Dec 22
2
How can I avoid nested 'for' loops or quicken the process?
Hi All,
I'm still pretty new to using R - and I was hoping I might be able to get
some advice as to how to use 'apply' or a similar function instead of using
nested for loops.
Right now I have a script which uses nested for loops similar to this:
i <- 1
for(a in Alpha) { for (b in Beta) { for (c in Gamma) { for (d in Delta) {
for (e in Epsilon)
{
Output[i] <-