My revision notes on Quantitative Analyst course from DataCamp and also from other sources if relevant.
THe Resources.md provides links to Internet Resources which are relevant to Quantitative Finance using R.
The building blocks for analysing portfolios is Portfolio Weights and Returns.