FAQ: Introduction to R Syntax - Logical Operators

Yeah. I was referring to the typo. Beyond that, (I’ve only ever dabbled in R) it appears that you cannot begin a new line of code with else. It seems in R syntax the else doesn’t know it belongs to the previous if unless it is on the same line as the closing } from the if.