cdb_unflatten: Reconstitute a flattened COM(P)ADRE database (created by...

View source: R/cdb_unflatten.R

cdb_unflattenR Documentation

Reconstitute a flattened COM(P)ADRE database (created by cdb_flatten) as a CompadreDB object

Description

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

Usage

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.

Author(s)

Patrick M. Barks <patrick.barks@gmail.com>

See Also

cdb_flatten string_representation

Other data management: cdb_flatten(), cdb_id_stages(), cdb_id_studies(), cdb_id(), cdb_mean_matF(), cdb_rbind(), cdb_unnest(), mpm_elementwise_apply(), mpm_mean(), mpm_median(), mpm_sd(), string_representation

Examples

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


Rcompadre documentation built on Oct. 17, 2024, 1:07 a.m.