queue-package: Queue data structures

Description Details Author(s) Examples

Description

A queue is a sequential data structure allowing users to push to the back of it to store data and pull from the front of it to retrieve data. The queue data structure provided in this package is appropriate for use on a single-process R session. However, there are other packages, such as redis.queue, that allow data structures to be passed between processes.

Details

Package: queue
Type: Package
Version: 0.1
Date: 2012-05-19
License: LGPL-2
LazyLoad: yes

Author(s)

Michael J. Kane

Maintainer: Mike <kaneplusplus@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Create a queue.
q <- queue()

# Push the number one through 10 onto it.
for (i in 1:10) {
  push(q, i)
}

# Pop the values from the queue.
for (i in 1:10) {
  cat(i, " ")
}
cat("\n")

queue documentation built on May 2, 2019, 6:48 p.m.