r2lFindClass {r2lUniv} | R Documentation |
r2lFindClass
sets the basic type of a vector
.
r2lFindClass(variable, limDiscrete = 10)
variable |
vector whose type is to be set. |
limDiscrete |
numberic ; fixes the limit that distinguishes continuous variables
from discrete ones. See details below. |
r2lFindClass
determines the basic type of a vector, as
defined in r2lUniv. The rules are the following:
factor
becomes nominal
.
logical
becomes nominal
.
ordered
becomes ordinal
.
integer
or numeric
become either discrete
or continuous
:
discrete
continuous
numeric
. We do not here consider the class, but the nature
of the variable.
limDiscrete
. If a vector
has more than
limDiscrete
different observations, it will be
continuous
. Otherwise, it is elligible for being
discrete
(if the second condition holds).
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)
Christophe Genolini
christophe.genolini@free.fr
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Jean-Marc Chamot
jchamot@u-paris10.fr
Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory
University of Paris 10 / Nanterre
r2lUniv
,
r2lUniv.data.frame
,
r2lFindClasses
,
r2lModifyClasses
# # # # # # # # # # # # # # # # # # # # 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)