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/tg documentation built on Feb. 21, 2023, 3:35 a.m.