What are the ways we can convert an image to a matrix in R




While seeing a tutorial on svd in R I came across the following piece of code:

But this “rimage” package is not available for R version 3.2.2 so what package can be used instead?

There are some other packages also like jpeg but they do not have this imagematrix function.Kindly help


try pixmap package ?