View source: R/factor_sort_function.R
factor_sort | R Documentation |
Opens a shiny app to help resort levels of a factor. Drag and drop levels in the appropriate order. Copy the code output and replace the factor_sort() call.
factor_sort(data, col)
data |
A data.frame |
col |
A factor or character vector |
chickwts %>% factor_sort(col = feed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.