Final commits on rmd and r files from Nick

Updated R source with raw search analysis code and r markdown for the
what section.