Learn R Programming

quanteda (version 1.3.13)

View: View methods for quanteda

Description

Redefines utils::View() as a generic, so that we can define methods for kwic to produce a nice viewer.

Usage

View(x, title)

# S3 method for default View(x, title)

# S3 method for kwic View(x, title)

# S3 method for dfm View(x, title)

Arguments

x

an R object which can be coerced to a data frame with non-zero numbers of rows and columns

title

for viewer window. Defaults to name of x prefixed by Data:

See Also

View

Examples

Run this code
# NOT RUN {
## for kwic
View(kwic(data_char_ukimmig2010, "illeg*"))

## for data.frame
View(dfm(data_char_ukimmig2010))
# }

Run the code above in your browser using DataLab