View source: R/collapse_annotation.R
collapse_annotation | R Documentation |
Takes an annotation-style dataframe and concatenates tokens back into lines of text
collapse_annotation( df, token = token, doc_id = doc_id, line_id = line_id, text = text )
df |
A tibble based on output from |
token |
Name of column containing tokens to be collapsed |
doc_id |
Name of column containing document ids to group by |
line_id |
Name of column containing line ids to group by |
text |
Name of column to contain collapsed text |
A tibble with lines in column text
.
## Not run collapse_annotation(annotated_hymns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.