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