Learn R Programming

⚠️There's a newer version (0.3.7) of this package.Take me there.

High Performance Container Data Types

Github: https://github.com/randy3k/collections

Documentation: http://randy3k.github.io/collections

Provides high performance container data types such as Queue, Stack, Deque, Dict and OrderedDict. Benchmarks https://randy3k.github.io/collections/articles/benchmark.html have shown that these containers are asymptotically more efficient than those offered by other packages.

Related R packages

dequer implements double ended queues and it supports arbitary R objects. However, it uses R_PreserveObject and R_ReleaseObject heavily which could be an issue for long queues.

datastructures uses ‘Boost’ and ‘STL’ data types to implement queues and hashmaps. It only supports atomic vectors.

liqueueR implements queues using R lists.

hash uses new.env( hash = TRUE) to create hash tables.

hashmap provides fast hashmap for atomic vectors.

Copy Link

Version

Install

install.packages('collections')

Monthly Downloads

14,367

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Randy Lai

Last Published

July 30th, 2018

Functions in collections (0.1.0)

Deque

Double Ended Queue
Stack

Stack
QueueL

Queue (list based)
collections-package

collections: High Performance Container Data Types
StackL

Stack (list based)
Queue

Queue
DequeL

Double Ended Queue (list based)
PriorityQueue

Priority Queue
OrderedDictL

Ordered Dictionary (list based)
Dict

Dictionary
OrderedDict

Ordered Dictionary