Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created February 5, 2016 21:36
Show Gist options
  • Save tengpeng/a109615ce20a0e8ba6a6 to your computer and use it in GitHub Desktop.
Save tengpeng/a109615ce20a0e8ba6a6 to your computer and use it in GitHub Desktop.
classify r
result = if(any(result <= 1.5)) 1 else 2
result = ifelse(result <= 1.5, 1, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment