as.categorical: Convert data type to a factor if it's not already

View source: R/compile-typing.R

as.categoricalR Documentation

Convert data type to a factor if it's not already

Description

Convert data type to a factor if it's not already

Usage

as.categorical(x)

Arguments

x

Data to convert to factor

Value

Data as a factor

Examples


as.categorical(1:3)


spgarbet/tangram documentation built on Feb. 12, 2023, 7:13 p.m.