To check whether a string is a subset of another string we can use grepl function.
> Company <- "TutorialsPoint" > Job <- "Tutor" > grepl(Job, Company, fixed = TRUE)  TRUE
Here we are getting TRUE because Tutor is a subset of TutorialsPoint.
> grepl(Company, Job, fixed = TRUE)  FALSE
Here we are getting FALSE because TutorialsPoint is not a subset of Tutor.