cdb_unnest | R Documentation |
Unnests a CompadreDB object by spreading the components of CompadreMat into separate list-columns. Components that may be extracted include:
matA
(matrix)
matU
(matrix)
matF
(matrix)
matC
(matrix)
MatrixClassAuthor
(character vector)
MatrixClassOrganized
(character vector)
MatrixClassNumber
(integer vector)
cdb_unnest(
cdb,
components = c("matA", "matU", "matF", "matC", "MatrixClassAuthor",
"MatrixClassOrganized", "MatrixClassNumber")
)
cdb |
A CompadreDB object |
components |
Character vector specifying which components to extract. Defaults to all, i.e. |
cdb
with additional list-columns for each element of argument
components
Patrick M. Barks <patrick.barks@gmail.com>
Other data management:
cdb_flatten()
,
cdb_id_stages()
,
cdb_id_studies()
,
cdb_id()
,
cdb_mean_matF()
,
cdb_rbind()
,
cdb_unflatten()
,
mpm_elementwise_apply()
,
mpm_mean()
,
mpm_median()
,
mpm_sd()
,
string_representation
# unnest all components
CompadreUnnest <- cdb_unnest(Compadre)
# unnest select components (matU and MatrixClassAuthor)
CompadreUnnest <- cdb_unnest(Compadre, c("matU", "MatrixClassAuthor"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.