Answers for "compare two string in R"

0

compare two string in R

library(stringi)
stri_reverse("madam")
## [1] "madam"
stri_reverse("sir")
## [1] "ris"
Posted by: Guest on May-24-2020
0

compare two string in R

ifelse(identical(c("a", "s"), c("a", "s")), "Indeed", "Not At All")
# Your question could be solved as:
ifelse(identical(string, reversed_split), "Indeed", "Not At All")
Posted by: Guest on May-24-2020

Browse Popular Code Answers by Language