Learn R Programming

MethEvolSIM (version 0.2)

count_upm: Count Methylation States

Description

This internal function counts the number of sites with unmethylated, partially-methylated, and methylated states in a given vector.

Usage

count_upm(data)

Value

An integer vector of length 3 containing counts of unmethylated, partially-methylated, and methylated sites, respectively.

Arguments

data

A numeric vector with methylation values: 0 (unmethylated), 0.5 (partially-methylated), and 1 (methylated).