I wish to create a number of tables with numerical elements of very different scales. For example, tables with the variance of various variables down the diagonal, and the correlations off the diagonal. The larger numbers make the tables too big, and are harder to read.
Is there a good way using stargazer (or some other, similar package) to scale down the elements that are much larger, and indicate this with a foot note, or automatically use exponential notation?
For example, the following r code creates a matrix where the diagonal elements are much larger than the other elements.
x <- matrix(rnorm(25,0,1),5,5)
diag(x) <- rnorm(5,10000000,10)
stargazer(x,summary=F,digits=2)
Any help much appreciated.