Description Usage Arguments Value Examples
Note that all Pali string comparisons are case-insensitive. This algorithm is based on Quicksort, but creates lots of intermediate data structures instead of doing swaps in place. This has been implemented in C++ as the original R version was about 500x slower.
1 | pali_sort(word_list)
|
word_list |
A vector of Pali words |
A new vector of Pali words in Pali alphabetical order
1 2 3 4 5 6 7 | # Every unique word of of the Mahāsatipatthāna Sutta in
# Pali alphabetical order:
pali_sort(sati_sutta_long$word)
# A sorted list of 100 random words from the Tiptaka:
library(dplyr)
pali_sort(sample(tipitaka_long$word, 100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.