Description Usage Arguments Details Value References See Also Examples
Extract key words in context (kwic) utilizing freq_terms
.
1 2 3 4 5 6 | kwic(text.var, grouping.var, n.before = 1, tot = FALSE,
n.after = n.before, ord.inds = TRUE, markup = c("<<", ">>"), top = 15,
at.least = 5, extend = TRUE, ignore.case = FALSE, left = "\\b",
right = "", names = c("KeyWords"), elim.old = FALSE,
stopwords = c("going", qdapDictionaries::contractions[[1]],
qdapDictionaries::Top200Words), ...)
|
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 |
n.after |
The number of rows after the indexed occurrence. |
ord.inds |
logical. If |
markup |
A character vector of length two indicating the left (element
1) and right (element 2) boundary markers to use to highlight the
key words. Use |
top |
Top number of terms to show. |
at.least |
An integer indicating at least how many letters a word must be to be included in the output. |
extend |
logical. If |
ignore.case |
logical. If |
left |
The left boundary (regular expression) to put on the left side of
words. Default is
word boundary
(i.e., |
right |
The right boundary (regular expression) to put on the right side
of words. Default is no boundary and will locate words within words. For
example the expression |
names |
A string indicating the name of the key words in the collective
group name for the key words for use in the |
elim.old |
logical. If |
stopwords |
A character vector of words to remove from the text. |
... |
Other arguments passed to |
While kwic
does not analyze discourse connectors, it is useful
in identifying themes (and distribution across time) and builds upon the
modular use of functions in the pkgdiscon package.
Returns returns a list of 2-3:
counts |
A |
Context 1 |
A |
Context 2...n |
An optional (not returned if |
Ryan, G. W. & Bernard, H. R. (2003). Techniques to identify themes. Field Methods. 15(1), 85-109. doi: 10.1177/1525822X02239569
termco
,
trans_context
,
freq_terms
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.