0

I'm working with a matrix and I am trying to perform an MMult function.

matrix_data = this is a 3by3 matrix

t = 22

matrix_data_adj = lapply(1:t,function(x) matrix_data %^% x)

So I found that function online, although it gives me the desired output; I am trying to understand what the above really does. Especially the (%^%) operator do, then the lapply generally.

Thank you.

  • see: [R: What are operators like %in% called and how can I learn about them?](https://stackoverflow.com/questions/25179457/r-what-are-operators-like-in-called-and-how-can-i-learn-about-them). and because it's not a [Predefined infix operators in R](https://www.datamentor.io/r-programming/infix-operator/#:~:text=any%20special%20symbols.-,Predefined%20infix%20operators%20in%20R,-Predefined%20infix%20operators), it must be something like in the first link. – Luuk Mar 05 '23 at 10:33

0 Answers0