I have an R array output that I would like to include in a LaTeX beamer slide.
The array is simple enough
, , 1
[,1] [,2] [,3] [,4] [,5]
[1,] NA NA NA NA NA
[2,] NA NA NA NA NA
[3,] NA NA NA NA NA
[4,] NA NA NA NA NA
[5,] NA NA NA NA NA
[6,] NA NA NA NA NA
[7,] NA NA NA NA NA
[8,] NA NA NA NA NA
[9,] NA NA NA NA NA
[10,] NA NA NA NA NA
but seems a nightmare to format quickly and easily using the amsmath package and \begin{array}[cccccc] and \end{array}[cccccc].
Does someone know of a nice solution?
Any assistance is greatly appreciated.

\begin{frame}[fragile]\begin{verbatim}[copy your array here]\end{verbatim}\end{frame}, if needed you can make the text smaller using the solution in https://tex.stackexchange.com/questions/161678/decreasing-font-size-in-verbatim. – Marijn Oct 27 '17 at 21:54