Updated tax_agg.R to convert matrix to data.frame

Re: ropensci/taxize#224

If the community data matrix is indeed a `matrix` object, the function converts it to `data.frame` automatically