xpssCompute(x="there is no letter in word", fun="computeChar_index", pattern="letter")
xpssCompute(x="there is no letter in word", fun="computeChar_index", pattern="string")
xpssCompute(x=c("fruits are sweet", "fruits are sour","fruits are salty"),
fun="computeChar_index", pattern="sweet")
Run the code above in your browser using DataLab