relevel_sequentially: convenience function for reordering factors without thinking...

Description Usage Arguments Value

View source: R/relevel_sequentially.R

Description

I wrote this a million years ago for TARGET and have used it ever since. It's not terribly clever but it can help A LOT with plotting to reorder.

Usage

1

Arguments

x

a factor, or something that can become one

lvls

a vector with level names that include all levels of x

Value

1
 a releveled factor version of x

trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.