Learn R Programming

IBDhaploRtools (version 1.8)

get.counts: get counts

Description

subroutine that counts transitions

Usage

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

Run this code

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

Run the code above in your browser using DataLab