Analyze financial data using R