Convert a COM(P)ADRE database to a flat data frame with matrices and vectors stored in string representation
Source:R/cdb_flatten.R
cdb_flatten.Rd
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).
Value
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.
See also
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_elementwise_apply()
,
mpm_mean()
,
mpm_median()
,
mpm_sd()
,
string_representation