token: Humdrum tokens

View source: R/Token.R

tokenR Documentation

Humdrum tokens

Description

token is an S4 class which acts as a simple "wrapper" around atomic data, allowing humdrumR to give that data special treatment. They are basically atomic vectors with a known exclusive interpretation. You should be able to treat them exactly like their "normal" class of atomic vector—e.g., character, or numeric.

Usage

token(x, Exclusive = NULL, ...)

## S4 method for signature 'token'
c(x, ...)

## S3 method for class 'token'
rep(x, ...)

## S3 method for class 'token'
unique(x, ...)

## S4 method for signature 'token,ANY,ANY'
x[i, j, ..., drop = FALSE]

## S4 method for signature 'token'
show(object)

## S3 method for class 'token'
format(x, ...)

is.token(x)

order.token(
  x,
  ...,
  na.last = TRUE,
  decreasing = FALSE,
  method = c("auto", "shell", "radix")
)

## S4 method for signature 'token,token'
Arith(e1, e2)

## S4 method for signature 'token,character'
Arith(e1, e2)

## S4 method for signature 'character,token'
Arith(e1, e2)

## S4 method for signature 'token'
Summary(x, ..., na.rm = FALSE)

Computational-Cognitive-Musicology-Lab/humdrumR documentation built on Oct. 22, 2024, 9:28 a.m.