Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 6 characters in body
Source Link
Amal K
  • 5k
  • 2
  • 28
  • 56

I'm trying to determine if a string is a subset of another string. For example:

chars <- "test" value <- "es" 

I want to return TRUETRUE if "value""value" appears as part of the string "chars""chars". In the following scenario, I would want to return false:

chars <- "test" value <- "et" 

I'm trying to determine if a string is a subset of another string. For example:

chars <- "test" value <- "es" 

I want to return TRUE if "value" appears as part of the string "chars". In the following scenario, I would want to return false:

chars <- "test" value <- "et" 

I'm trying to determine if a string is a subset of another string. For example:

chars <- "test" value <- "es" 

I want to return TRUE if "value" appears as part of the string "chars". In the following scenario, I would want to return false:

chars <- "test" value <- "et" 
edited title
Link
Jaap
  • 83.7k
  • 36
  • 190
  • 203

Test if characters are in a string in R

edited tags
Link
Gregor Thomas
  • 147.4k
  • 22
  • 185
  • 320
Please don't sign your posts. http://stackoverflow.com/faq#signatures
Source Link
Matt Ball
  • 360.9k
  • 102
  • 655
  • 725
Loading
Source Link
mike
  • 24k
  • 32
  • 82
  • 100
Loading