search for: fxdata

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

Did you mean: nxdata
2006 Nov 21
1
Is there any way to know when a field is blank
...0 2004-02-10 00:03:09.00000,,105.59000000 2004-02-10 00:03:16.00000,,105.60000000 2004-02-10 00:03:19.00000,,105.59000000 2004-02-10 00:03:25.00000,,105.60000000 2004-02-10 00:03:39.00000,,105.59000000 2004-02-10 00:03:52.00000,,105.60000000 2004-02-10 00:03:54.00000,,105.60000000 # LINES OF CODE fxdata<-read.zoo(file=fxfile,FUN=as.POSIXct,sep=",",col.names=c("date"," bid","ask")) fxdata<-fxdata[( fxdata[,"bid"] > 0.0 ) & ( fxdata[,"ask"] > 0.0 ),] aggfxdata<-as.zoo(aggregatebyminutes(zooobj=fxdata,aggtimeframe=aggtime...
2006 Nov 21
1
Maybe not a stable if statement
I have the structure, fxdata, below and I want to only keep data points of it in which the "bid" and the "ask" column names are both greater than zero. It's very hard to reproduce my problem because it seems like the behavior ( whether it gets rid of all the the zeros or not ) depends on the size of f...
2006 Oct 28
1
really strange problem - has to be logic but i can't find it
...of R which isn't so great. #----------------------------------------------------------------------- ------------------------------------------------------------------------ ------------------------------------------------------------------------ -------------------------------------------- fxdata<-structure(c(27.21, 27.21, 27.21, 27.21, 27.26, 27.25, 27.55, 27.5, 27.5, 27.5, 27.5, 27.52, 27.52, 27.52, 27.52, 27.58, 27.58, 27.58, 27.58, 27.62, 27.6, 27.6, 27.6, 27.65, 27.6, 27.6, 27.6, 27.6, 27.6, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.57, 27.58, 27.58,...
2012 Jan 11
0
Error in charToDate(x)
...2205,1.41625,1.42174,8974 ... 2011-08-12 04:00:00,1.42175,1.42413,1.42067,1.42172,7229 ... 2011-12-30 05:00:00,1.42173,1.42341,1.42062,1.42171,6703 ... raw<- read.delim2("~/R/Data/EURUSD60.csv",header=TRUE,sep=",") stripday<-strptime(raw$DATE,format="%Y%m%d") fxdata<-data.frame(stripday,raw) write.table(fxdata,"~/R/Data/EURUSD60.csv",quote=FALSE,sep=",",row.names=FALSE) EURUSD<-as.xts(read.zoo("~/R/Data/EURUSD60.csv",sep=",",format="%Y-%m-%d %R",tz="GMT",header=T)) I then set up a couple of i...