Converts a flattened COM(P)ADRE database (created by cdb_flatten) back to the CompadreDB class

cdb_unflatten(db)

Arguments

db

A data frame created with cdb_flatten, with columns for matrices matA, matU, matF, matC, and vectors MatrixClassAuthor, and MatrixClassOrganized in string representation.

Value

A CompadreDB object. Because version details are lost when the database is flattened, the Version and DateCreated elements of the returned CompadreDB object will be NA.

See also

Examples

CompadreFlat <- cdb_flatten(Compadre) # flatten Compadre2 <- cdb_unflatten(CompadreFlat) # reconstitute