Submitting basic functions which will be required later for analyses in R / knitr