Search code examples
rdata.tableplyrdplyrchaining

%>% or %.% operator in this R code


I am new to R and I am having a hard time understanding and making the following snippet functional :

fMatrix <- DT[c(v1,v2), ] %.% select(f1,f2,f3) %.% lapply(...)

logically, it seems to make sense, as it is (probably) trying to take a subset and perform certain operations by some sort of method chaining using (dot operator). The problem is my R interpreter doesn't recognizes %.%

I am guessing the operator comes from a package I didn't import or something like that. Any insights are welcome.


Solution

  • Look at librarydplyr, in R. The docs say it is related to chain

    See the dplyr docs here, at p.7.