Summarizing Financial Data in R