powered by
like(vector,pattern) vector
grepl
TRUE
pattern
data.table
DT = data.table(Name=c("Mary","George","Martha"), Salary=c(2,3,4)) DT[Name %like% "^Mar"]
Run the code above in your browser using DataLab