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)


tangram documentation built on Feb. 16, 2023, 5:59 p.m.