print-WordAssociation-method: Print a 'WordAssociation-class' object

Description Usage Arguments Examples

Description

Pretty-print the word attractions measures in a WordAssociation-class object. The lexical types are grouped by subcorpora and, in each subcorpora, print the types sorted according to the requested word association measure.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S4 method for signature 'WordAssociation'
print(
  x,
  from = 1,
  to = 100,
  threshold = NULL,
  types = NULL,
  parts = NULL,
  sort.by = indicator.name(x)[1],
  file = "",
  append = FALSE
)

Arguments

x

WordAssociation-class

from

rank of the first (sorted) attracted forms printed

to

rank of the last (sorted) attracted forms printed

threshold

print only attracted forms with association strength above the threshold

types

character. Print only the given types.

parts

character. Print only the given subcorpora.

sort.by

character. The name of one of the word association indicator available in the WordAssociation-class object for sorting the lexical types in each subcorpora. By default, the first indicator (indicator.name(x)[1])

file

character. If no empty, print the table in the given file

append

logical. If the file argument is no empty, select erasing file or adding the table at the end of the file, preserving existing content.

Examples

1
2
3
4
5
data(robespierre)
res <- wam(data=robespierre, measure = c("chisq", "loglikelihood"))
print(res)
# or:
res

sylvainloiseau/wam documentation built on Feb. 12, 2020, 12:30 a.m.