• R code with documentation