factor_sort: Drag and drop to reorder levels of a factor.

View source: R/factor_sort_function.R

factor_sortR Documentation

Drag and drop to reorder levels of a factor.

Description

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.

Usage

factor_sort(data, col)

Arguments

data

A data.frame

col

A factor or character vector

Examples

chickwts %>% factor_sort(col = feed)



Louismp1223/LMP3 documentation built on June 29, 2022, 5:11 p.m.