Syntax corrections to the R code.