dc_typology: Extract Typology Discourse Connectors in Context

Description Usage Arguments Value References See Also Examples

Description

Extract typology discourse connectors in context.

Usage

1
2
3
dc_typology(text.var, grouping.var, n.before = 1, tot = FALSE,
  n.after = n.before, ord.inds = TRUE, markup = c("<<", ">>"),
  name = "typology", ...)

Arguments

text.var

The text variable.

grouping.var

The grouping variables. Also takes a single grouping variable or a list of 1 or more grouping variables.

n.before

The number of rows before the indexed occurrence.

tot

logical. If TRUE condenses sub-units (e.g., sentences) into turns of talk for that grouping.var.

n.after

The number of rows after the indexed occurrence.

ord.inds

logical. If TRUE inds is ordered least to greatest.

markup

A character vector of length two indicating the left (element 1) and right (element 2) boundary markers to use to highlight the typology discourse connectors. Use c("", "") to not mark the typology discourse markers.

name

A string indicating the name to search for within the internal data sets, typically the function's name. Generally, for internal use.

...

Other arguments passed to termco.

Value

Returns returns a list of 3:

counts

A termco object of positive and negative typology discourse marker counts.

negative

A trans_context object of positive typology discourse connectors in context.

positive

A trans_context object of negative typology discourse connectors in context.

References

Ryan, G. W. & Bernard, H. R. (2003). Techniques to identify themes. Field Methods. 15(1), 85-109. doi: 10.1177/1525822X02239569

See Also

termco, trans_context

Examples

1
2
3
4
5
6
7
8
out <- with(pres_debates2012[1:200, ], dc_typology(dialogue, person))
out[1]
out[2]
out[3]
plot(out)

## Save externally use .doc or .txt
## print(out[[2]], file="neg_typology.doc")

trinker/discon documentation built on May 31, 2019, 8:42 p.m.