smartNum {dataReporter}R Documentation

Smart class to handle numerics as factor

Description

S3 class meant for representing numeric variables that act like factor variables by taking only a few different values. This class is used in makeDataReport() in order to get appropriate summaries, visualizations and checks for such variables. In other words, such variables will be treated like factor variables instead of numerics.

Usage

smartNum(v)

Arguments

v

A numeric vector

Value

A smartNum object that is handled in makeDataReport in the same way as a factor.


[Package dataReporter version 1.0.2 Index]