reorder_levels: Re-order levels of a factor

View source: R/dplyr_extensions.R

reorder_levelsR Documentation

Re-order levels of a factor

Description

Re-orders the levels of a factor by a vector of new positions.

Usage

reorder_levels(x, positions)

Arguments

x

factor

positions

vector of positions

Value

factor

Author(s)

Martin Schmettow


schmettow/bayr documentation built on March 23, 2024, 7:49 p.m.