cdb_flatten | R Documentation |
Converts a CompadreDB object to a flat data frame by extracting the data
slot, and splitting the mat
column into separate columns for each
component (matrices matA
, matU
, matF
, matC
, and
vectors MatrixClassAuthor
, and MatrixClassOrganized
). The
component matrices and vectors within the six new columns are stored in
string format so that the database can be written to a flat file format such
as csv (see string_representation).
cdb_flatten(cdb)
cdb |
A CompadreDB object |
A data frame based on the data slot of cdb
, but with the
column mat
replaced by six separate columns (for matrices
matA
, matU
, matF
, matC
, and vectors
MatrixClassAuthor
, and MatrixClassOrganized
), whose elements
are matrices or vectors in string representation.
Owen R. Jones <jones@biology.sdu.dk>
Patrick M. Barks <patrick.barks@gmail.com>
cdb_unflatten string_representation
Other data management:
cdb_id_stages()
,
cdb_id_studies()
,
cdb_id()
,
cdb_mean_matF()
,
cdb_rbind()
,
cdb_unflatten()
,
cdb_unnest()
,
mpm_mean()
,
mpm_median()
,
mpm_sd()
,
string_representation
CompadreFlat <- cdb_flatten(Compadre)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.