I\'m fairly new to R and I want to clean up my code so that it is more dynamic and compact. Basically I do two SQL outtakes and get two data frames "Cases" and &qu