as.deque | R Documentation |
Convert to Deque
as.deque(x) ## S3 method for class 'list' as.deque(x) ## Default S3 method: as.deque(x) ## S3 method for class 'queue' as.deque(x) ## S3 method for class 'stack' as.deque(x)
x |
An object either to be converted to the first element of a deque (default), or the elements of a list (or columns of a dataframe) to be set as elements of a deque. |
A queue, stack, or deque.
## Not run: library(dequer) d <- as.deque(lapply(1:5, identity)) d ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.