[R] strptime format = "%H:%M:%OS6"
Sam Steingold
sds at gnu.org
Tue Feb 15 17:39:19 CET 2011
I read a dataset with times in them, e.g., "09:31:29.18761".
I then parse them:
> all$X.Time <- strptime(all$X.Time, format = "%H:%M:%OS6");
and get a vector of NAs (how do I check that except for a visual inspection?)
then I do
> options("digits.secs"=6);
> all$X.Time <- strptime(all$X.Time, format = "%H:%M:%OS");
and it, apparently, works:
> all$X.Time[2]-all$X.Time[1]
Time difference of 5.12188 secs
so, why doesn't format = "%H:%M:%OS6" work as documented?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://dhimmi.com http://openvotingconsortium.org http://palestinefacts.org
http://honestreporting.com http://www.memritv.org http://camera.org
There are two kinds of egotists: 1) Those who admit it 2) The rest of us
More information about the R-help
mailing list