Add a table output option

I create the table that I feed into R. Eventually I'd like to run the whole workflow, but this is good enough for now. The rest might be a shell script.