Open KimboGilda opened 3 years ago
Hey Nikos, thanks for your help. I had issues interpreting the different outcomes. i tried it but i'm not sure if i got it right (see my comments in the code). would you mind giving me feedback on this too? in the solutions you only showed the right code without interpretation... thank you!
Hey Nikos, thanks for your help. I had issues interpreting the different outcomes. i tried it but i'm not sure if i got it right (see my comments in the code). would you mind giving me feedback on this too? in the solutions you only showed the right code without interpretation... thank you!
Sure Bettina I can further explain. Have you pushed your changes/comments to your repo?
https://github.com/bettinaputzi/cma_week3/blob/bc7e01ae52ab1cc037696058260809ab67a66f15/week3_rexercise.R#L97-L184
First of all nice try with the task. Below I am attaching a way to perform it in a cleaner way. The whole idea is based on using
functional programming
and more specifically some of functions of thepurrr::map()
family.as a second step, again using one of the functions of the
purrr::map_* family
-->imap_dfr
, I am calculating three indices over all 5 pairs in one go.