count_chords: Count chords

Description Usage Arguments Value

View source: R/count-chords.R

Description

This function counts chords within a corpus.

Usage

1
2
3
4
count_chords(x, type = "pc_chord_type")

## S3 method for class 'corpus'
count_chords(x, type = "pc_chord_type")

Arguments

x

Corpus to analyse.

type

Representation to which chords should be coerced before counting.

Value

Integer vector providing the observed counts for each chord, indexed by the type encoding defined in the hrep package.


pmcharrison/corpdiss documentation built on Sept. 21, 2019, 12:07 a.m.