Recode & Reorder - RStudio Addin

RecodeReorder is RStudio addin for interactively renaming, collapsing and reordering factor levels. Addin automatically generates R code that can be inserted in an active R script. Addin uses data.frame objects from Global Env.


You can install addin from GitHub with:

# install.packages("remotes")

Report a bug at

Browse source code at

Step by step guide

Step 1: Load data.frame objects.

Step 2: Run addin from Addins dropdown menu.

Step 3: Select data and variable.

Step 4: Rename and reorder levels. For reordering drag and drop text inputs.

Step 5: Insert generated R code by clicking the INSERT CODE button.