as.data.frame.freqlist: Coerce frequency list to data frame

Description Usage Arguments Value Examples

Description

Coerces a frequency list to a data frame

Usage

1
2
## S3 method for class 'freqlist'
as.data.frame(x, ...)

Arguments

x

the object x must be an oject of the class "freqlist".

...

the argument ... is not used at the moment.

Value

This function returns a data frame.

Examples

1
2
3
4
toy_corpus <- "Once upon a time there was a tiny toy corpus.
It consisted of three sentence. And it lived happily ever after."
(flist <- freqlist(toy_corpus, as_text = TRUE))
as.data.frame(flist)

wai-wong-reimagine/mclm documentation built on May 16, 2019, 9:12 p.m.