print-KwicToken-method: Print a KwicToken object

Description Usage Arguments Examples

Description

Print a KwicToken object

Usage

1
2
3
## S4 method for signature 'KwicToken'
print(x, from = 1, to = -1, sort.by = "none",
  decreasing = FALSE, file = "", append = FALSE, ...)

Arguments

x

KwicToken object: the set of kwic lines

from

length-1 numeric vector: index of the first line to be printed

to

length-1 numeric vector: index of the last line to be printed

sort.by

length-1 character or numeric vector: sorting lines. 'none': corpus order; 'right' and 'left': first word after or before the keyword; 'random': randomized order; 0: keyword, n < 0 : the n^th word before the keyword; n > 0 : the n^th word after the keyword

decreasing

lenth-1 logical vector: is the sort to be done in increasing or decreasing order?

file

length-1 character vector: url of the file to be used for writing the kwic lines

append

length-1 logical vector: should the content of the file be erased or preserved

...

unused arguments

Examples

1
2
3
data(dickensl, unit="token")
res <- kwic(dickensl, "the")
print(res)

sylvainloiseau/kwic documentation built on May 26, 2019, 5:31 a.m.