variableType: Summary function for original class

Description Usage Arguments Value See Also Examples

View source: R/variableType.R

Description

A summaryFunction type function, intended to be called from summarize, which finds the original class of a variable. This is just the class for all objects but those of class smartNum.

Usage

1

Arguments

v

A variable (vector).

...

Not in use.

Value

An object of class summaryResult with the following entries: $feature ("Variable type"), $result (the (original) class of v) and $value (identical to $result).

See Also

summarize

Examples

1
2
3
4
5
6
7
8
9
 #For standard variables:
   varX <- c(rep(c(1,2,3), each=10))
   class(varX)
   variableType(varX)

 #For smartNum variables:
   smartX <- dataMaid:::smartNum(varX)
   class(smartX)
   variableType(smartX)

ekstroem/cleanR documentation built on Jan. 31, 2022, 8:58 a.m.