I'm running an example about Markov Chain. Everything is working so far except for this code produces an error:
ra2 <- ra %^% 2
Error in ra %^% 2 : could not find function "%^%"
Magrittr package doesn't include the above operator. Any feedback?
I'm running an example about Markov Chain. Everything is working so far except for this code produces an error:
ra2 <- ra %^% 2
Error in ra %^% 2 : could not find function "%^%"
Magrittr package doesn't include the above operator. Any feedback?
That is the efficient operator %^% from package expm. It computes the k-th power of a matrix. Therefore you need to load or install the expm package first.