print-KwicLine-method: Print a KwicLine object

Description Usage Arguments Examples

Description

Print a KwicLine object

Usage

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

Arguments

x

KwicLine 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 vector: sort lines by 'right' context or 'left' context ('none': corpus order, 'random': randomized order)

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="line")
res <- kwic(dickensl, "the")
print(res)

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