powered by
Intended for use in i in [.data.table.
i
[.data.table
like(vector,pattern) vector %like% pattern
Either a character vector or a factor. A factor is faster.
character
factor
Passed on to grepl.
grepl
Logical vector, TRUE for items that match pattern.
TRUE
pattern
data.table, grepl
data.table
# NOT RUN { 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