Updated tax_agg.R to convert matrix to data.frame