Description Usage Arguments Value Examples
subroutine that counts transitions
1 | get.counts(x, state.num)
|
x |
vector of data |
state.num |
scalar indicating number of states |
returns a state.num by state.num matrix of transition counts
1 2 | x = sample( 1:5, size = 20, replace = TRUE)
get.counts(x, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.