change_fac_lev {pcutils}R 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"))

[Package pcutils version 0.2.6 Index]