1. The call grep(pattern,x) searches for a specified substring pattern in a vector x of strings.
grep("Pole",c("Equator","North Pole","South Pole")) 
## [1] 2 3
grep("pole",c("Equator","North Pole","South Pole")) #case sensative
## integer(0)
  1. ‘nchar(x)’ finds the length of a string x
nchar("South Pole")
## [1] 10
  1. ‘paste(…)’ concatenates several strings, returning the result in one long string
paste("Final","Exam")
## [1] "Final Exam"
paste("Final","Exam",sep="") #no space in between 
## [1] "FinalExam"
paste("Final","Exam",sep=".") #dot in between
## [1] "Final.Exam"
paste("Final","and","Exam") #add 'and' in between
## [1] "Final and Exam"
  1. substr(x,start,stop) returns the substring in the given character position range start:stop in the given string x.
substring("Equator",3,5)
## [1] "uat"
  1. strsplit(x,split) splits a string x into an R list of substrings based on another string split in x
strsplit("11-28-2022",split="-")
## [[1]]
## [1] "11"   "28"   "2022"