Category Archives: Misc Tricks

Extract Data Tables from PDF Files in R

A new method to extract data tables from PDF files is introduced. Most of the data scraping tools available are browser-based.  The common tools are also manual in nature and limited to one table at a time. A solution is outlined to extract multiple tables at once.  The solution combines the R programming language with the open-source Java program Tabula. The result is a convenient method that transforms documents into databases.

Benefit Statement
The ability to train a machine to extract data tables from PDF files has several benefits:

Posted in Data, Misc Tricks, R Data Import, R Programming | Leave a comment

Custom Beamer Template

Click to enlarge

Click to enlarge

Beamer is a \LaTeX{}~ document class that is by far the most practical tool for making presentations involving data science, business analytics, or general research. It is widely used in most conferences and easily lends itself to data intensive reporting and repetitive batch processing.

A custom beamer template is presented that is easy to extend or modify.  The benefits of the beamer document are numerous:

Posted in LaTeX, Misc Tricks, R Programming | Leave a comment

R Syntax Highlighter

Pretty RPretty R is an online tool and r syntax highlighter that transforms R source code into HTLM code for website development.  The result is easy to read R code for high quality web presentations. The Pretty R webpage is a good learning tool as it provides the HTML code details required to deliver syntax highlighting that complies with R documentation from inside-r.org.

Posted in Misc Tricks, R Programming | Leave a comment