Add multiple phenotypes to a phenotype matrix request.

phemat_add_phenotypes(names, phenotype_matrix, missing_value = NA)

Arguments

names

a comma seperated string or character vector of phenotype/s to be added. E.g. "height,weight" or c("height", "weight")

phenotype_matrix

A phenotype matrix structure

missing_value

The string to substitute for missing values in the data

Value

a phenotype matrix object

Examples

if (FALSE) {
phenotype_mat <- get_phenotype_matrix()
phenotype_mat <- phemat_add_phenotypes(names=c("PT1", "PT2"), phenotype_matrix = phenotype_mat)
}