Update Chapter 2.R

Missed a parentheses on the last line.