September trouble [🇷 for BE/BA]
Hi all,
can someone try this:
The code creates some dates as string for first day of all months and then tries to interpret the strings as dates. I am getting an NA for September.
Oddly, if I abbreviate September as "Sept" rather then "Sep"
then it works, in spite of the fact that
Does it behave the same way on your system? Mine is Win11 installed last week along with a fresh R install.
Add.: Oh dear, is
can someone try this:
Date.str=paste0("01/", month.abb[c(1:12)], "/2024")
Date.I=as.Date(Date.str,format='%d/%b/%Y')
print(data.frame(Date.str, Date.I))
The code creates some dates as string for first day of all months and then tries to interpret the strings as dates. I am getting an NA for September.
Oddly, if I abbreviate September as "Sept" rather then "Sep"
as.Date("01/Sept/2024",format='%d/%b/%Y')then it works, in spite of the fact that
month.abb[9] is Sep and not Sept on my system.
Does it behave the same way on your system? Mine is Win11 installed last week along with a fresh R install.
Add.: Oh dear, is
%b locale-dependent? Shoot me, please. Put me out of my misery. This is not good.—
Pass or fail!
ElMaestro
Pass or fail!
ElMaestro
Complete thread:
- September troubleElMaestro 2025-11-10 12:26
- September trouble mittyri 2025-11-10 20:38
- More months trouble Helmut 2025-11-11 09:37
- More months trouble ElMaestro 2025-11-13 05:20
- Know the month abbreviations Helmut 2025-11-13 12:45
- Know the month abbreviations ElMaestro 2025-11-14 16:34
- Know the month abbreviations Helmut 2025-11-13 12:45
- More months trouble ElMaestro 2025-11-13 05:20
- Worse in France Ohlbe 2025-11-12 15:13
- Worse in France ElMaestro 2025-11-14 16:38
