search for: test_seq

Displaying 1 result from an estimated 1 matches for "test_seq".

Did you mean: test_set
2018 Aug 09
1
Bug in POSIXct string representation?
...that it works: > options(digits.secs = 6, digits = 6) > as.character(as.POSIXct("2018-08-31 14:15:16.123456")) [1] "2018-08-31 14:15:16.123456" Now create a sequence of POSIXct with stepwidth 0.1sec: > test <- as.POSIXct("2018-08-31 14:15:16.000000") > test_seq <- seq(test, test + 1, by = 1/10) Calling format with the millisecond conversion specification gives the intended result (even though there is a small representation error): > format(test_seq, "%F %T.%OS") [1] "2018-08-31 14:15:16.16.000000" "2018-08-31 14:15:16.16....