ez.factorder | R Documentation |
does not change factor label; only changes the order of printing out
ez.factorder(x, col, ord = NULL, print2scr = F)
x |
data frame or vector, factor or non-factor |
col |
a single column name, quoted string, ignored when x is not a data frame |
ord |
"az","za"–alphabetic;
|
returns a new df, factor (non-factor->factor)
if x df, pass (x,col,ord); if x not df, pass (x,ord), or (x,ord=)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.