as.queue: Convert to Queue

View source: R/as.queue.r

as.queueR Documentation

Convert to Queue

Description

Convert to Queue

Usage

as.queue(x)

## S3 method for class 'list'
as.queue(x)

## Default S3 method:
as.queue(x)

## S3 method for class 'deque'
as.queue(x)

## S3 method for class 'stack'
as.queue(x)

Arguments

x

An object either to be converted to the first element of a queue (default), or the elements of a list (or columns of a dataframe) to be set as elements of a queue.

Value

A queue object.

Examples

## Not run: 
library(dequer)
q <- as.queue(lapply(1:5, identity))
q

## End(Not run)


wrathematics/dequer documentation built on March 17, 2022, 6:38 p.m.