Skip to contents

Summarizes the content of a humdrumR corpus, by calling five different corpus summary functions and printing their results.

Usage

# S3 method for humdrumR
summary(object)

Details

humdrumR includes a number of separate functions for summarizing different aspects of humdrumR data objects:

  • census()

    • Tabulates the raw size of the humdrumR corpus.

  • reference()

    • Tabulates reference records (metadata) for each piece.

  • spines()

    • Tabulates the number of spines and spine paths in pieces in the corpus.

  • interpretations()

    • Tabulates the types of exclusive and tandem interpretations in the corpus.

  • sections()

    • Tabulates any formal data (*>) in the corpus, including barlines.

Each function takes a humdrumR object and returns a data.table. The summary method for humdrumR objects simply calls all of the above functions and prints a condensed version of each.

See also

Other corpus summary functions: census(), interpretations(), reference(), spines()

Examples

chorales <- readHumdrum(humdrumRroot, "HumdrumData/BachChorales/*.krn")
#> Finding and reading files...
#> 	REpath-pattern '/home/nat/.tmp/Rtmpn4KeFS/temp_libpath7af94615c2ed/humdrumR/HumdrumData/BachChorales/*.krn' matches 10 text files in 1 directory.
#> Ten files read from disk.
#> Validating ten files...
#> all valid.
#> Parsing ten files...
#> Assembling corpus...
#> Done!
summary(chorales)
#> 		Summary of humdrumR corpus "chorales":
#> Error in eval(rlang::expr((!!f)(!!quoted))): object 'chorales' not found