Skip to contents

Combine multiple file reads and/or API fetches into a single deduplicated sm_corpus.

Usage

sm_build_corpus(..., dedupe = TRUE, verbose = TRUE)

Arguments

...

One or more sm_corpus objects or file paths.

dedupe

Logical; deduplicate by DOI after combining?

verbose

Logical; show progress messages?

Value

An sm_corpus object.

Examples

c1 <- sm_example_corpus(n_works = 50, seed = 1)
c2 <- sm_example_corpus(n_works = 50, seed = 2)
combined <- sm_build_corpus(c1, c2, dedupe = TRUE)
#>  Removed 50 duplicate works by DOI.