count_chords: Count chords

View source: R/model-corpdiss.R

count_chordsR Documentation

Count chords

Description

This function counts chords within a corpus.

Usage

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/incon documentation built on Feb. 12, 2024, 3:18 a.m.