as.categorical {tangram}R 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)


[Package tangram version 0.8.2 Index]