[R] A==A false?

2013-03-07 Thread Creighton, Sean
> > as.numeric(ImpVol[1,5,57]) == 0.0001 [1] FALSE > > as.numeric(ImpVol[1,5,57]) [1] 1e-04 > > 0.0001 [1] 1e-04 > Any tips? Thanks Sean R 2.15.3 windows 7 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Histogram of gaps

2008-06-10 Thread Creighton, Sean
Hi I consider myself not a complete beginner in R, however an elegant solution to this problem stumps me. I have a fairly long time series of 6 or so points, I need to gather the data to create a histogram of the length of continuous zero periods in a data set. So image the data looks like t

[R] Strptime

2008-05-30 Thread Creighton, Sean
Hi This code should explain what I'm trying to do > strptime("30-Jan-08", "%d-%b-%y") [1] "2008-01-30" > > format(strptime("30-Jan-08", "%d-%b-%y") , "%b-%y") [1] "Jan-08" > > strptime(format(strptime("30-Jan-08", "%d-%b-%y") , "%b-%y") , "%b-%y") [1] NA I have a string of the form "Jan-08"

[R] Microseconds for a zoo object?

2008-05-08 Thread Creighton, Sean
Hello I have a string which contains microseconds, can anyone help on constructing this in to a time object, with the microseconds, that I can take to a ZOO file? Thanks Sean > UK[1,3] [1] "17:09:53.824" > UK[1,1] [1] "2007-12-11 00:00:00" > mydates <- paste( substr(UK[,1], 1, 10), UK[,3])

Re: [R] ROracle error at step 1

2008-04-23 Thread Creighton, Sean
Sent: 23 April 2008 14:01 To: Creighton, Sean [CMB-FICC] Cc: r-help@r-project.org Subject: Re: [R] ROracle error at step 1 Where did you get your ROracle package from? > Built: R 2.2.1; i386-pc-mingw32; 2006-02-13 18:05:59; windows indicates it was too old. All methods-using packages need

[R] ROracle error at step 1

2008-04-23 Thread Creighton, Sean
Hi I Can't connect to the Oracle database, any tips? Has anybody actually got ROracle up and running on windows? >> unable to find an inherited method for function "dbConnect", for signature "OraDriver" I can happily connect to the same database through RODBC. Oracle client, version 9.2

[R] Interpolation across merged zoo columns

2007-10-11 Thread Creighton, Sean
Hi I have a collection of about 16 time series with occasional missing data. A few of these time-series start later than the rest. There is a relatively high correlation between them (they are hourly temps at various locations around the UK). The longest series contains about 4 points I have

[R] (no subject)

2007-10-11 Thread Creighton, Sean
Hi I have a collection of about 16 time series with occasional missing data. A few of these time-series start later than the rest. There is a relatively high correlation between them (they are hourly temps at various locations around the UK). The longest series contains about 4 points I have