make_nptest_classes: Converts a character vector of genotype scores into two...

View source: R/genoconverters.R

make_nptest_classesR Documentation

Converts a character vector of genotype scores into two classes - one of which represents one homozygous state, and the other represents the other homozygous state and all heterozygotes

Description

Converts a character vector of genotype scores into two classes - one of which represents one homozygous state, and the other represents the other homozygous state and all heterozygotes

Usage

make_nptest_classes(vec, level = 1, na_string = "u")

Arguments

vec

A character vector of genotype scores, each of which is made of two characters. An na_string may also be present

level

Either 1 or 2, indicating which homozygous state is to be compared to the other state/heterozygotes. Default is 1

na_string

a string representing NA. Default is "u"


alexwhan/genomap documentation built on March 1, 2025, 10:13 a.m.