var_format: Function that given a vector adjusts formats the datatype in...

View source: R/var_format.R

var_formatR Documentation

Function that given a vector adjusts formats the datatype in cases that it makes sense.

Description

Function that given a vector adjusts formats the datatype in cases that it makes sense.

Usage

var_format(vect, n)

Arguments

vect

vector of data

n

number of unique values under below which formating will apply

Value

formated vector

Examples

var_format(iris$Species, n = 6)
var_format(mtcars$gear, n = 6)


el-mrt/auto-statistics documentation built on March 19, 2022, 1:57 p.m.