Description Usage Arguments Author(s)
Create a factor from a factor or character string, with levels ordered based on another variable.
1 | orderfactor(var, by)
|
var |
Factor or character vector with the values of the output factor. |
by |
A vector that can be ordered with base::order. |
Lauri Myllyvirta lauri.myllyvirta@greenpeace.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.