get_mode: A function to find the more common allele or NA at each SNP

View source: R/get_mode.R

get_modeR Documentation

A function to find the more common allele or NA at each SNP

Description

This function gets the mode of a vector for majority voting or returns NA if there is no single mode

Usage

get_mode(vector)

Arguments

vector

A subset of donor haplotypes

Details

Adapted from #from https://stackoverflow.com/questions/56552709/r-no-mode-and-exclude-na?noredirect=1#comment99692066_56552709

Value

mode The most frequent value or NA at a position


mccoy-lab/rhapsodi documentation built on July 27, 2022, 3:56 a.m.