powered by
i
[.data.table
like(vector,pattern) vector %like% pattern
character
factor
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