# generate random matrix for example
# This represents a 3-node landscape, with random movement between nodes
moveMat <- matrix(data = runif(n = 9), nrow = 3, ncol = 3)
moveMat <- moveMat/rowSums(moveMat)
moveRate <- movement_prob2rate(tau = moveMat)
Run the code above in your browser using DataLab