View source: R/general_helpers.R
floor_decade | R Documentation |
Returns the decade for vector of years.
floor_decade(year_vector, return_class = "factor")
year_vector |
Vector of years. |
return_class |
Optional flag to return vector formatted as a factor, alternative is numeric. |
returns vector of values representing the decade each year occurred in.
# not run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.