Add a new phenotype to the matrix request.

phemat_add_phenotype(name, phenotype_matrix, missing_value = NA, label = NULL)

Arguments

name

Phenotype name

phenotype_matrix

A phenotype matrix structure

missing_value

The string to substitute for a missing value in the data

label

Optional label to apply to the phenotype

Value

a phenotype matrix object

Examples

if (FALSE) {
phenotype_mat <- get_phenotype_matrix()
phenotype_mat <- phemat_add_phenotype(name="PT1", phenotype_matrix = phenotype_mat)
}