View source: R/nice_date_functions.R
nice_month_string | R Documentation |
One of the problems with the Gregorian calendar is that months are not alphabetical. In R the default sorting of strings is in alphabetical order. For tables and graphs of data by month this may mean repeated creation of month variables, which is tedious.
nice_month_string(x, abbreviated_out = FALSE, year_type = "calendar")
x |
A month string, will take either abbreviated or full length month strings |
abbreviated_out |
Should the output be abbreviated? default = FALSE |
year_type |
string, either calendar or financial (year starts April) |
A factor with months in order as the occur in the year.
nice_month_string(x = "Dec", abbreviated_out = FALSE, year_type = "calendar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.