corpus_metadata: Returns a data.frame of corpus metadata.

Description Usage Arguments Value Examples

Description

Returns a data.frame of metadata for the specified corpus. The rownames of the data.frame are the corpus text title abbreviations.

Usage

1
    corpus_metadata(corpus)

Arguments

corpus

The name of the corpus. Can be ‘DNov’ or ‘19C’.

Value

A data.frame with the following structure.

1
2
3
4
5
6
    'data.frame':   29 obs. of  3 variables:
     $ author: chr  "Jane Austen" "Jane Austen" "Mary Wollstonecraft Shelley" ...
     $ title : chr  "Pride and Prejudice" "Emma" "Frankenstein; or, The Modern Prometheus" ...
     $ year  : int  1813 1815 1818  ...
     attributes
       $row.names : "pride" "emma" "frank" ...

Examples

1
    df <- corpus_metadata('DNov')

ravingmantis/CorporaCorpus documentation built on May 27, 2019, 2:04 a.m.