Convert CSV matrix to TeX format using R

Use if you have a matrix that has been stored as as CSV file and want to reformat it so that it can be used as the content of a TeX table.