as.fulltexttable: Convert object to input for fulltext (table format).

Description Usage Arguments Examples

Description

Convert object to input for fulltext (table format).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
as.fulltexttable(x, ...)

## S4 method for signature 'slice'
as.fulltexttable(x, display = "block",
  headline = NULL, name = "", interjections = TRUE)

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

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

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

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

## S4 method for signature '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.

interjections

If TRUE, an s-attribute "interjections" will be assumed to be available. When the s-attribute "interjections" is either "TRUE" or not "speech", the passage of text is blockquoted.

tag

A tag.

beautify

Remove whitespace before interpunctation.

Examples

1
2
3
4
5
6
7
8
9
library(polmineR)
library(fulltext)
use("polmineR")
p <- partition("GERMAPARLMINI", speaker = "Volker Kauder", date = "2009-11-10")
ftab <- as.fulltexttable(p, headline = "Volker Kauder (CDU)", display = "block")
fulltext(ftab, box = FALSE)

sd <- crosstalk::SharedData$new(ftab)
fulltext::fulltext(sd)

PolMine/fulltext documentation built on Oct. 15, 2020, 8:18 p.m.