Lambda Function Excel Syntax Does Not Equal In R