Hello all, To calculate the power of a matrix, I used the command "mtx.exp(X, n)", but there is an error saying "Error: couldn't find function "mtx.exp"". How can I deal with this problem? Jing
Load the library first:> library(Malmig) > ?mtx.expHTH, Andy
jing tang wrote:> Hello all, > To calculate the power of a matrix, I used the command "mtx.exp(X, n)", > but there is an error saying "Error: couldn't find function "mtx.exp"". > How can I deal with this problem? > JingYou have not told us in which package mtx.exp() is, and looking for it shows us that it is in package "Malmig". library(Malmig) mtx.exp(X, n) works for me. Folks, PLEASE think about the packages you are using! This is the (n+1)-th e-mail within 7 days not specifying the package you are talking about. Uwe Ligges
>>>>> "jing" == jing tang <tang_chalmers at hotmail.com> >>>>> on Tue, 02 Nov 2004 15:11:32 +0100 writes:jing> Hello all, jing> To calculate the power of a matrix, I used the command jing> "mtx.exp(X, n)", but there is an error saying "Error: jing> couldn't find function "mtx.exp"". How can I deal jing> with this problem? Jing ## First load the "Malmig" package in which the mtx.exp() ## function is defined: library(Malmig) ## If that gives an error as well, you also need. install.packages("Malmig") Martin Maechler, ETH Zurich