cClass | R Documentation |
Column names of multilevel data sets are extracted according to
three classes: numeric
values, integer
sequences,
and factor
levels.
cClass(rd, cl = "all")
rd |
|
cl |
|
character
names.
Wilson Lara <wilarhen@gmail.com> [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Felipe Bravo <fbravo@pvs.uva.es> [aut] (<https://orcid.org/0000-0001-7348-6695>)
##Multilevel data frame of tree-ring widths:
data(Prings05,envir = environment())
## Names of variables in Prings05 data containing numeric classes:
cClass(Prings05, 'numeric') # 'x'
## Names of variables containing time units:
cClass(Prings05, 'integer') # 'year'
## Names of variables containing factors:
cClass(Prings05, 'factor') # 'sample', 'tree', 'plot'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.