search for: ndaysback

Displaying 4 results from an estimated 4 matches for "ndaysback".

2008 Dec 30
5
Downloading data from Economagic
I was trying to dw data from Economagic [http://www.economagic.com/em-cgi/data.exe/libor/day-ussnon], using following code : library(fimport) dat2 = economagicSeries("libor/day-ussnon", frequency = "daily") Here I see that data is not complete, downloaded data starts from "2007-12-31 ", whereas actual data is available from 2001. secondly, how I convert that data
2009 Aug 04
0
Efficient coding
...llingPointID == sp,] dmnd <- tsrSUB[is.na(tsrSUB$cDeviceClass),] if(nrow(dmnd) != 1) warning(paste("cSpillingPointID", sp, "has more than one demand time Series. Used first.")) tsrValCount <- getTimeSeries(chn, tsrSUB[!is.na(tsrSUB$cDeviceClass),]$cTimeSeriesID, nDaysBack = 366*nyears) tsrValDmnd <- getTimeSeries(chn, dmnd$cTimeSeriesID[1], nDaysBack = 366*nyears) sequence <- timeSequence(from = format(start(tsrValDmnd), '%Y-%m-%d'), to = format(end(tsrValDmnd), '%Y-%m-%d'), by = 'day') if(format(start(tsrValDmnd), '%H')...
2010 Apr 12
1
N'th of month working day problem
...31st dates... >> >> I enclose a working version of the function and a script for demo purposes. >> >> Many thanks in advance, >> Costas >> >> library(fImport) >> library(zoo) >> DJ<-yahooSeries("^DJI", frequency="daily", nDaysBack=10000) >> DJd<-as.zoo(DJ[,4]) >> >> ### Choose number of day for month >> >> chooseday<-function(z, day) >> >> { >> >> # z.na is same as z but with missing days added using NAs >> # Its formed by merging z with a zoo-widt...
2007 Feb 04
2
Download stock prices
gReetings: Is there any way to download a (or a sample of a) crossection of stock market prices? Or is it possible to use get.hist.quote with a *wild card*? Thanks, mihai Mihai Nica 170 East Griffith St. G5 Jackson, MS 39201 601-914-0361 ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time [[alternative HTML