vec: Vector

View source: R/vec.R

vecR Documentation

Vector

Description

This function creates an object of the class "vec".

Usage

vec(x, type, metadata = list())

Arguments

x

List of (un-encoded) chord symbols, each of class type.

type

(Character scalar) Identifies the symbol type.

metadata

(List) A (possibly-empty) list of metadata information.

Details

"vec" objects are typed vectors of chord symbols. Their underlying representation is a list, where every list element is of a specified type (see type).

Value

An object of class "vec".

See Also

coded_vec, codeencode, codedecode.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.