cdb_id | R Documentation |
Creates a vector of integer identifiers corresponding to the rows of a CompadreDB object, based on unique combinations of the elements in a given set of columns.
cdb_id(cdb, columns)
cdb |
A CompadreDB object |
columns |
Vector of column names from which unique combinations should be identified |
Identifiers are assigned by pasting together the relevant columns, assigning factor levels based on alphabetical order, and then converting the factor levels to integers.
Vector of integer identifiers corresponding to the rows of
cdb
, based on unique combinations of the elements in columns
.
Patrick Barks <patrick.barks@gmail.com>
Other data management:
cdb_flatten()
,
cdb_id_stages()
,
cdb_id_studies()
,
cdb_mean_matF()
,
cdb_rbind()
,
cdb_unflatten()
,
cdb_unnest()
,
mpm_elementwise_apply()
,
mpm_mean()
,
mpm_median()
,
mpm_sd()
,
string_representation
cdb_id(Compadre, columns = c("SpeciesAuthor", "MatrixTreatment"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.