| month_fct | R Documentation | 
Returns the month abbreviations (Jan, Feb, ...) as a factor (so to keep the annual order), with the option to define the first month (as factor level), so also hydrological years are possible (Oct, Nov, Dec, Jan, ..). Requires a numeric input vector of months.
month_fct(month, first_month = 1)
month | 
 a vector of months (numeric)  | 
first_month | 
 numeric, month which should be the first level (default: 1, i.e. Jan)  | 
Factor of same length as input.
month <- sample(1:12, 30, replace = TRUE)
month
month_fct(month)
month_fct(month, 10) # note the level order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.