Learn R Programming

MLmorph (version 0.1.1)

factorize_nicely_vector: Heuristic factorization for a single vector

Description

Heuristic factorization for a single vector

Usage

factorize_nicely_vector(data_vector)

Value

A factor (ordered for numeric inputs with many distinct values).

Arguments

data_vector

A vector (numeric, logical, or character).

Examples

Run this code
factorize_nicely_vector(c("a", "b", "a"))

Run the code above in your browser using DataLab