Added R code for BAMM postprocessing