tabr-head: Head and tail for tabr classes

tabr-headR Documentation

Head and tail 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 class 'noteworthy'
head(x, ...)

## S3 method for class 'noteinfo'
head(x, ...)

## S3 method for class 'music'
head(x, ...)

## S3 method for class 'lyrics'
head(x, ...)

## S3 method for class 'noteworthy'
tail(x, ...)

## S3 method for class 'noteinfo'
tail(x, ...)

## S3 method for class 'music'
tail(x, ...)

## S3 method for class 'lyrics'
tail(x, ...)

Arguments

x

object.

...

number of elements to return.

See Also

tabr-methods(), note-metadata()

Examples

# noteworthy class examples
x <- "a b c d e f g"
head(x, 2)
head(as_noteworthy(x), 2)
tail(as_noteworthy(x), 2)

# noteinfo class examples
x <- "4x 4-.*8 2 4"
head(as_noteinfo(x))
tail(as_noteinfo(x))

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

leonawicz/tabr documentation built on Sept. 24, 2023, 2:49 p.m.