An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100422/cb485612/attachment.pl>
time difference
4 messages · Carol Gao, Stefan Petersson, jim holtman
Carol Gao <carol.gaox <at> gmail.com> writes:
Hi, Does anyone know how to take a time difference when the format of the time is as 13:22:23.586? I am trying to take the difference of time between stock transactions and need to keep the three decimal places for seconds. I have tried *diff(strptime(x, "%H:%M:%S.000))*, but apperantly that doesn't work. Carol Gao [[alternative HTML version deleted]]
I found this: http://tolstoy.newcastle.edu.au/R/e6/help/09/05/15738.html It seems to me that this is partly an options issue. Maybe this is something to work with: options(digits.secs=3) strptime(x, "%H:%M:%S%OS")
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100422/62857a76/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100423/498d7f3b/attachment.pl>