An R package for Portfolio Analysis