get.trans.prob: Transition probability matrix generator

Description Usage Arguments Value Examples

Description

This function is designed to run on a data frame of many simulated tracks. It loops through each one to get transitions and sums the probabilities for the entire set of simulated tracks. This function uses the first area occupied at the beginning of the time period, and transitions to the first occupied area in the next time period.

Usage

1
get.trans.prob(datbox, nyears = 100, adims = c(7, 7, 4), perc = T, ...)

Arguments

datbox

data frame returned from get.first.box

nyears

dummy variable that sets up a dataframe to be filled. Should be greater than the number of years simulated

adims

array dimensions. For a 7-box area and 4 seasons, c(7, 7, 4)

perc

logical. Return results as a percentage of the row total

Value

a list of transition probabilities for each time period. The row index represents the previous area and the column represnts the current area for the given time period.

Examples

1

galuardi/SatTagSim documentation built on Nov. 15, 2020, 6:28 a.m.