as.queue | R Documentation |
Convert to Queue
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)
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. |
A queue object.
## Not run: library(dequer) q <- as.queue(lapply(1:5, identity)) q ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.