tooltips: Add tooltips to fulltexttable

Description Usage Arguments Examples

Description

Add tooltips to fulltexttable

Usage

1
2
## S4 method for signature 'fulltexttable'
tooltips(.Object, tooltips = list(), ...)

Arguments

.Object

A fulltexttable object.

tooltips

A named list or character vector with the tooltips to be displayed. The names of the list/vector are expected to be tokens.

...

What comes in via the three dots will be turned into a list and merged with the tooltips argument.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
library(polmineR)
library(fulltext)
use("polmineR")

k <- corpus("GERMAPARLMINI") %>%
  subset(speaker == "Volker Kauder") %>%
  subset(date == "2009-11-10") %>%
  as.fulltexttable(headline = "Volker Kauder (CDU)", display = "block")
  
k <- tooltips(
  k,
  Opposition = "Dauerlooser",
  Regierung = "Vollchecker",
  Regierungserklรคrung = "Gewinnerprogramm"
)
fulltext(k, box = FALSE)

## End(Not run)

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