chr2sbst: Convert a chromosome to a subset

Description Usage Arguments Value Examples

Description

Takes as input a binary string of 0s and 1s, and converts this to a subset for indexing

Usage

1

Arguments

p0

A string input

Value

A vector of indices corresponding to p0

Examples

1
2
3
x <- '0011001'
chr2sbst(x)
[1] 3 4 7

tjmassaro/ssga documentation built on May 6, 2019, 7:33 a.m.