An Introduction to Analysis of Financial Data with R