Skip to contents

This function gives you a quick preview about what a .zip-file from DfR contains.

Usage

jst_preview_zip(zip_archive)

Arguments

zip_archive

A path to a .zip-file from DfR

Value

The function returns a tibble with three columns:

  • type: metadata or some form of ngram

  • meta_type: which type of metadata (book_chapter, journal article, ...)

  • n: a count for each category

Examples

jst_preview_zip(jst_example("pseudo_dfr.zip"))
#> # A tibble: 4 × 3
#>   type     meta_type           n
#>   <chr>    <chr>           <int>
#> 1 metadata book_chapter        1
#> 2 metadata journal_article     1
#> 3 metadata pamphlet            1
#> 4 ngram1   ngram1              1