Conditions

Not used through if or a similar statement.

Check if a condition is true:

df$var[conditionToTest]

Check if a condition is false:

df$var[ ! conditionToTest]

conditionToTest should be replaced by actual R code.

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
  • Last modified: 7 weeks ago
  • by Olivier Simard-Casanova