note_ngram | R Documentation |
Convert a noteworthy string to a list of noteworthy n-grams.
note_ngram(notes, n = 2, tally = FALSE, rests = FALSE)
notes |
a noteworthy string. |
n |
Number of grams. Must be >= 1 and <= number of timesteps in
|
tally |
logical, tally n-grams in a data frame. Otherwise a list. |
rests |
logical, exclude rests. Affects the number of timesteps. |
list of noteworthy objects or a tibble
x <- as_noteworthy("c r ceg dfa ceg dfa")
note_ngram(x)
(x <- note_ngram(x, tally = TRUE))
x$ngram <- as.character(x$ngram)
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.