Questions tagged [fasttime]
5 questions
3
votes
3 answers
Fastest way to convert strings to dates in R
I would like to convert about 100 million dates in string form (eg: "09/20/2019") in R.
Doing
a = "09/20/2019"
a <- as.Date(a, "%m/%d/%Y")
seems to be somewhat slow. Is there a faster way to achieve this conversion?
(Tried the fasttime…

ant
- 93
- 4
2
votes
0 answers
fasttime not returning actual date from character in R
This seems very simple, but fasttime package is not working to convert dates.
library(fasttime)
z="2011-01-01"
fastPOSIXct(z)
>"2010-12-31 18:00:00 CST"
Can someone explain what is happening or what I have missed?

wolfsatthedoor
- 7,163
- 18
- 46
- 90
0
votes
1 answer
R common character to date converter for multiple formats
I am working with an input file where I have different string dates given in different month,day,year formats
example input ->
input <- c("2014-08-31 23:59:38" , "9/1/2014 00:00:25","2014-08-31 13:39:23", "12/1/2014 20:03:28")
How can I use a…

Ilayda Göden
- 69
- 3
0
votes
0 answers
R fastPOSIXct | Milliseconds not parsed correctly and time zone inconsistency
A sample timestamp vector of characters in millisecond precision:
timestamp <- c("2021-03-09 00:00:01.000", "2021-03-09 00:00:03.200", "2021-03-09 00:00:03.200",
"2021-03-09 00:00:03.600", "2021-03-09 00:00:06.700", "2021-03-09…

Pramesh Pudasaini
- 103
- 1
- 8
0
votes
1 answer
fasttime for dates before 1970 returning NA
Getting NA trying to parse this date:
fasttime::fastPOSIXct("1967-01-01", required.components = 3)
How come?

Rafael
- 3,096
- 1
- 23
- 61