order_factor_by: Reorder a factor

Description Usage Arguments Details Value See Also

View source: R/forcats-like.R

Description

Makes f a factor ordered according to ... (which is passed to order)

Usage

1

Arguments

.f

A factor

...

Passed to order(). Should be vectors of the same size as .f.

Details

This is a thin wrapper around forcats::fct_reorder(), which is unintuitive in conjunction with order().

Value

Reordered factor

See Also

rename_reorder_factor, rename_factor, forcats::fct_reorder


tidytidbits documentation built on March 8, 2021, 5:07 p.m.