Description Usage Arguments Details Value See Also Examples
Creates a new rstack from a given input. Coerces input to a
list first using as.list
, the element at x[[1]]
becomes the top of the new rstack.
1 |
x |
input to convert to a stack. |
... |
additional arguments to be passed to or from methods. |
Runs in O(N) in the size of the input. Because data frames return a list of
columns when run through as.list
, running as.rstack
results in a stack of
columns, rather than a stack of rows.
a new rstack.
1 2 3 4 5 6 7 8 9 |
An rstack with 20 elements.
Top of the stack:
: int 1
: int 2
: int 3
: int 4
: int 5
: int 6
...An rstack with 200000 elements.
Top of the stack:
: int 1
: int 2
: int 3
: int 4
: int 5
: int 6
...An rstack with 5 elements.
: num [1:150] 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ...
: num [1:150] 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ...
: num [1:150] 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ...
: num [1:150] 0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ...
: Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.