get_weekdays | R Documentation |
Get the names of the days of the week in a given locale.
get_weekdays(abbreviate = FALSE, locale = NULL, from = Sys.Date()) get_months(abbreviate = FALSE, locale = NULL, from = Sys.Date())
abbreviate |
A logical value indicating whether or not to return abbreviated names (if they are available). |
locale |
A string denoting the name of the locale to retrieve names in,
or |
from |
Date to use for the first day/month. |
A string containing a regular expression of the names of the days of the week, separated by pipes. The first day of the week will be the current day.
See Sys.setlocale
and
https://stackoverflow.com/q/20960821/134830 and
https://stackoverflow.com/q/26603564/134830 for how to specify
the locale.
get_weekdays() get_weekdays(TRUE) get_months() get_months(TRUE) ## Not run: if(.Platform$OS.type == "windows") { get_weekdays(locale = "French_France") get_weekdays(TRUE, locale = "French_France") get_weekdays(locale = "Arabic_Qatar") get_weekdays(TRUE, locale = "Arabic_Qatar") } else { get_weekdays(locale = "fr_FR.utf8") get_weekdays(TRUE, locale = "fr_FR.utf8") get_weekdays(locale = "ar_QA.utf8") get_weekdays(TRUE, locale = "ar_QA.utf8") } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.