get.counts: get counts

Description Usage Arguments Value Examples

Description

subroutine that counts transitions

Usage

1
get.counts(x, state.num)

Arguments

x

vector of data

state.num

scalar indicating number of states

Value

returns a state.num by state.num matrix of transition counts

Examples

1
2
x = sample( 1:5, size = 20, replace = TRUE)
get.counts(x, 5)

IBDhaploRtools documentation built on May 2, 2019, 6:48 p.m.