Analyze stocks with R