Description Usage Arguments Value Examples
Generates a subcorpus by restricting it to texts containing a specific number of words.
1 2 3 4 5 6 7 8 9 10 11 12 13 | filterCount(...)
## Default S3 method:
filterCount(text, count = 1L, out = c("text", "bin", "count"), ...)
## S3 method for class 'textmeta'
filterCount(
object,
count = 1L,
out = c("text", "bin", "count"),
filtermeta = TRUE,
...
)
|
... |
Not used. |
text |
Not necassary if |
count |
An integer marking how many words must at least be found in the text. |
out |
Type of output: |
object |
A |
filtermeta |
Logical: Should the meta component be filtered, too? |
textmeta
object if object
is specified,
else only the filtered text
. If a textmeta
object is
returned its meta data are filtered to those texts which appear in the corpus
by default (filtermeta
).
1 2 3 4 5 6 7 8 9 | texts <- list(A="Give a Man a Fish, and You Feed Him for a Day.
Teach a Man To Fish, and You Feed Him for a Lifetime",
B="So Long, and Thanks for All the Fish",
C="A very able manipulative mathematician, Fisher enjoys a real mastery
in evaluating complicated multiple integrals.")
filterCount(text=texts, count=10L)
filterCount(text=texts, count=10L, out="bin")
filterCount(text=texts, count=10L, out="count")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.