Learn R Programming

tabr (version 0.5.1)

tabr-length: Length for tabr classes

Description

Several methods are implemented for the classes noteworthy, noteinfo, and music. See tabr-methods() for more details on methods for tabr classes.

Usage

# S3 method for noteworthy
length(x)

# S3 method for noteinfo length(x)

# S3 method for music length(x)

# S3 method for lyrics length(x)

Arguments

x

object.

See Also

tabr-methods(), note-metadata()

Examples

Run this code
# noteworthy class examples
x <- "a b c"
length(x)
length(as_noteworthy(x))
length(as_noteworthy("a b*2 c*2"))

# noteinfo class examples
x <- "4- t8( t8)( t8) 4*2"
length(x)
length(as_noteinfo(x))

# music class examples
x <- "c,~4 c,1 c'e_'g'4-.*4"
length(x)
length(as_music(x))

Run the code above in your browser using DataLab