getQueryMatrix: Creates a matrix where rows match the tokens, columns...

Description Usage Arguments Value

View source: R/querymatrix.r

Description

Creates a matrix where rows match the tokens, columns represent the queries in query_regex, and values represent the word distance to each query hit

Usage

1
2
3
4
getQueryMatrix(tokens, query_regex, doc.col = getOption("doc.col", "doc_id"),
  position.col = getOption("position.col", "position"),
  word.col = getOption("word.col", "word"), presorted = F,
  default.window = NA, return_i = NULL)

Arguments

default.window

Value

a sparse matrix


kasperwelbers/tokenlist documentation built on May 20, 2019, 7:39 a.m.