count_markers: Count markers in phenotype

View source: R/RcppExports.R

count_markersR Documentation

Count markers in phenotype

Description

count_markers counts the number of markers a phenotype has given its numerical representation. Basically it returns the number of values greater than -1 in an integer vector.

Usage

count_markers(phenotype)

Arguments

phenotype

Numeric vector with phenotype encoding.

Value

Number of markers.

Examples

count_markers(c(0,1,2,0))
count_markers(c(0,1,-1))


SciOmicsLab/PhenoComb documentation built on Aug. 26, 2023, 1:28 p.m.