“Inline” conditions

An inline condition is a condition that is not used through if or a similar statement.

Check if a condition is true:


Check if a condition is false:

df$var[ ! conditionToTest]

conditionToTest should be replaced by actual R code.

Leave a Reply

Your email address will not be published. Required fields are marked *