“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.

Do not miss my upcoming posts
★ Subscribe to my newsletter