Learn R Programming

cloudos (version 0.4.0)

phenotype: Define a phenotype

Description

Defines a single phenotype

Usage

phenotype(id, value, from, to, instance = "0")

Value

A single phenotypes definition that cam be combined using &,| and ! operators

Arguments

id

A single phenotype id. Possible phenotyoes can be explored using the codecb_search_phenotypes function

value

The categorical value of the phenotype id defined

from

For continuous phenotypes, the lower bound of the desired value range

to

For continuous phenotypes, the upper bound of the desired value phenotype

instance

The instance number of the phenotype, default 0

Examples

Run this code
if (FALSE) {
continuous_phenotype <- phenotype(id = 13, from = "2016-01-21", to = "2017-02-13")
categorical_phenotype <- phenotype(id = 4, value = "Cancer")
}

Run the code above in your browser using DataLab