search for: closingprice

Displaying 3 results from an estimated 3 matches for "closingprice".

Did you mean: closingprices
2004 Mar 03
5
get.hist.quote - is great, but am I missing something?
...Qu.:691.5 Max. :1000.0 Max. :1000.0 Max. :930.0 Max. :944.9 NA's : 88.0 NA's : 88.0 NA's : 88.0 NA's : 88.0 there is no mention of a 'time' variable. And, I'm unable to extract (say) a vector of closing prices - e.g. if I say: > closingprices <- x$Close > print(closingprices) NULL I guess I'm not understanding the object that get.hist.quote makes. In general, what are R facilities for discovering what a given object is? -- Ajay Shah Consultant ajayshah at mayin.org...
2008 Feb 20
1
Is there simple code for this simple financial time series task?
My code below makes a data frame with columns for date, time, and price. Time on each date runs from 1 to 4. I'd like to add a new column "ts$closingprice", which would have the closing price for that date. To find the closing price, I'd like to take the price in the row having the greatest time value for each date. Then I'd like to fill that closing price into the $closingprice column for all other rows having the same date. --This a...
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] <-