change_fac_lev: Change factor levels

change_fac_levR Documentation

Change factor levels

Description

Change factor levels

Usage

change_fac_lev(x, levels = NULL, last = FALSE)

Arguments

x

vector

levels

custom levels

last

put the custom levels to the last

Value

factor

Examples

change_fac_lev(letters[1:5], levels = c("c", "a"))

pcutils documentation built on June 26, 2024, 1:06 a.m.