Skip to content
Prev 369619 / 398503 Next

months not working with local language (weekdays does)

Hello,

This doesn't answer the question, but in portuguese it works as expected.

 > x <- as.Date("2017-06-05")
 > months(x)
[1] "junho"
 > weekdays(x)
[1] "segunda-feira"
 > sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 
LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C 

[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.4.0

Hope this helps,

Rui Barradas

Em 05-06-2017 19:14, Omar Andr? Gonz?les D?az escreveu: