Here I will introduce matpow, a package to flexibly and conveniently compute matrix powers. But even if you are not interested in matrices, I think many of you will find that this post contains much general material on R that you’ll find useful. Indeed, most of this post will be about general R issues, not