r2lFindClass {r2lUniv}R Documentation

Determine Basic Classes for a vector

Description

r2lFindClass sets the basic type of a vector.

Usage

r2lFindClass(variable, limDiscrete = 10)

Arguments

variable vector whose type is to be set.
limDiscrete numberic; fixes the limit that distinguishes continuous variables from discrete ones. See details below.

Details

r2lFindClass determines the basic type of a vector, as defined in r2lUniv. The rules are the following:

Value

A vector of characters containing in first position the r2l basic class, then the R class of the object (the R class is not erased by r2lFindClass, it just becomes secondary class)

Author(s)

Christophe Genolini christophe.genolini@free.fr

See Also

r2lUniv, r2lUniv.data.frame, r2lFindClasses, r2lModifyClasses

Examples

 # # # # # # # # # # # # # # # # # # #
#   R to LaTeX, Univariate Analyses   #
 #             Examples              # 
  #          r2lFindClass           #
   # # # # # # # # # # # # # # # # # 

### Example for each R classes
data(Vfactor)
str(Vfactor)
r2lFindClass(Vfactor)

data(Vlogical)
str(Vlogical)
r2lFindClass(Vlogical)

data(Vordered)
str(Vordered)
r2lFindClass(Vordered)

data(Vinteger)
str(Vinteger)
r2lFindClass(Vinteger)
r2lFindClass(Vinteger,4)

data(Vnumeric)
str(Vnumeric)
r2lFindClass(Vnumeric)
r2lFindClass(Vnumeric,30)

[Package r2lUniv version 0.9 Index]