Update Functionals.rmd

clarified explanation of sweep() example code and changed code so it does what example describes.
Merge pull request #192 from mjsduncan/master

Update Functionals.rmd