Check that the specified phenotype can be formed from available phenotypes and data columns.

validate_phenotype_definitions(pheno, available, csd = NULL)

Arguments

pheno

Text description of a phenotype, for `phenoptr::parse_phenotypes`.

available

A character vector of available phenotypes

csd

If supplied, any formula arguments will be checked for validity against `csd`.

Value

An error message or empty string