Description Usage Arguments Value Note See Also Examples
Intended for use in [.data.table i.
1 2 |
vector |
Either a character vector or a factor. A factor is faster. |
pattern |
Passed on to |
Logical vector, TRUE
for items that match pattern
.
Current implementation does not make use of sorted keys.
1 2 | DT = data.table(Name=c("Mary","George","Martha"), Salary=c(2,3,4))
DT[Name %like% "^Mar"]
|
Name Salary
1: Mary 2
2: Martha 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.