Re: [R] Convert date to decimal days

2008-08-03 Thread cls59
You're right, the problem was with the print function not displaying enough precision. Thanks! -- View this message in context: http://www.nabble.com/Convert-date-to-decimal-days-tp18800462p18802117.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Convert date to decimal days

2008-08-03 Thread Prof Brian Ripley
I think you will find that the 'catastrophic loss of significance' is in the printing at the default level. Try print(x, digits=15). On Sun, 3 Aug 2008, cls59 wrote: Hello all, I have a quick question about formatting date strings.. Datetime strings, methinks. If you do just want days, u

[R] Convert date to decimal days

2008-08-03 Thread cls59
Hello all, I have a quick question about formatting date strings.. I am currently debugging some Matlab code someone else wrote and since it is so bad that I have to go through it line by line I figured that I would just rewrite the thing in R. The code produces plots of wave spectra with decim