factorise: Factorise

View source: R/factorise.R

factoriseR Documentation

Factorise

Description

Generate a factor with levels in prescribed order.

Usage

factorise(x)

Arguments

x

A character vector.

Value

A factor from x, with levels in the same order as they appear in within x.

Author(s)

Michaja Pehl

Examples

factor(c('a', 'c', 'b'))
factorise(c('a', 'c', 'b'))

pik-piam/quitte documentation built on April 12, 2025, 5:49 p.m.