This has been asked several times with no clear answer: I would like to convert an R character string of the form “YYYY-mm-dd” into a Date. The as.Date function is exceedingly slow. convert character to date *quickly* in R provides a solution using fasttime that works for dates from 1970 onward. My issue is I have dates starting from 1900 that I need to convert and there are about 100 million of them. I have to do this frequently so the speed is important. Are there any other solutions?
This has been asked several times with no clear answer: I would like to
Share
I can get a little speedup by using the
datepackage:You might want to look at the C code it uses and see if you can modify it to be faster for your specific situation.