Organizing multiple tables in R/knitr/LaTeX (Sweave) documents

When reporting results in automated documents using literate programming as implemented in R/knitr/LaTeX, arranging multiple floating objects (figures and tables) can quickly become a problem, because of LaTeX’s typesetting defaults which waste space or throw errors, because LaTeX cannot place the floats without violating the constraints, leading to too many floats in the buffer. Here is a little template which solves this problem by reconfiguring the LaTeX settings and using useful packages.

Code Document