Created
April 24, 2024 21:12
-
-
Save sokarob/0c6c032dea014b5bdf0f250080cb8a43 to your computer and use it in GitHub Desktop.
[Find a String in Another String (Contains)] #find #contains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple Condition | |
str_detect(`Column`,'STRING')==T | |
# Condition with case handling | |
str_detect(toupper(`Column`),'STRING')==T | |
# Also works for excluding records | |
str_detect(`Column`,'STRING')==F |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment