allelesAB: Paste together (vectors of) A and B alleles after sorting...

Description Usage Arguments Value Author(s) Examples

View source: R/input.R

Description

A tool to summarise and compare alleles when we do not care what order they are reported in, i.e. when A/G and G/A are considered the same.

Usage

1
allelesAB(A1, A2, sep = "/")

Arguments

A1

a vector of allele names.

A2

a vector of allele names, of same length as A1.

sep

string to use as a separator.

Value

A vector of combined allele names; elementwise A1 and A2 are pasted together in alphabetically increasing order.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

Examples

1
2
  data(t2d.scores)
  table(allelesAB(t2d.scores$coded.allele, t2d.scores$noncoded.allele))

tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.