Rdocumentation
powered by
Learn R Programming
rstackdeque (version 1.1.1)
as.rstack.default: Default method for converting to an rstack
Description
Default method for converting to an rstack.
Usage
"as.rstack"(x, ...)
Arguments
x
the input to convert to an rstack.
...
arguments to be passed to or from other methods (ignored).
Value
a filled
rstack
.
Details
Elements from the input (of any type) are first converted to a list with
as.list
, after this an rstack of the appropriate size is created holding the elements. The element at
x[[1]]
becomes the top of the stack.
See Also
rstack
for info about rstacks,
as.rstack
for the generic.