Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Timm committed Apr 9, 2018
1 parent e6988eb commit db41b69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/summarizeSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ clr_flatten_contexts <- function(x) {

out <- x[, list(context=paste(token, collapse=" ")), by=list(doc_id,eg,place)]
out <- dcast.data.table(out, doc_id+eg ~ place, value.var = "context")
out[is.na(out)] <- ""
pats[out, on=c("doc_id","eg"), nomatch=0]
}

Expand Down

0 comments on commit db41b69

Please sign in to comment.