Convert object to input for fulltext (table format).

as.fulltexttable(x, ...)

# S4 method for slice
as.fulltexttable(x, display = c("none", "block"),
  headline = NULL, name = "")

# S4 method for data.frame
as.fulltexttable(x, ...)

# S4 method for character
as.fulltexttable(x, display = "block",
  tag = "para", name = "", beautify = TRUE)

# S4 method for list
as.fulltexttable(x, display = "block", tag = "para",
  beautify = TRUE)

# S4 method for fulltexttable
as.fulltexttable(x, ...)

# S4 method for data.table
as.fulltexttable(x)

Arguments

x

The object to be converted.

...

Placeholder for further arguments defined by methods.

display

The initial value of the html style argument. Either "block" or "none". Should usually be "block"

headline

A headline to prepend.

name

An id inserted into tags.

tag

A tag.

beautify

Remove whitespace before interpunctation.

Examples

library(polmineR) library(fulltext) use("polmineR")
#> ... activating corpus: GERMAPARLMINI
#> ... activating corpus: REUTERS
p <- partition("GERMAPARLMINI", speaker = "Volker Kauder", date = "2009-11-10")
#> ... get encoding: latin1
#> ... get cpos and strucs
ftab <- as.fulltexttable(p, headline = "Volker Kauder (CDU)", display = "block") fulltext(ftab, box = FALSE) sd <- crosstalk::SharedData$new(ftab) fulltext::fulltext(sd)