Description Usage Arguments Examples
Turn a vector of strings into a factors while keeping the existing order of elements in the vector, instead of having them automatically alphabetized.
1 | strings_to_ordered_factors(myvector)
|
myvector |
vector of character strings |
1 2 | mymonths <- c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
ordered_months_as_factors <- strings.to.ordered.factors(mymonths)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.