Description Usage Arguments Details Value Author(s) Examples
Simple wrapper to extract a particular slot for each object in a list.
1 |
ls |
list of objects. |
slot |
character. Name of the slot to extract. |
index |
integer vector. Optional index vector to extract only a subset of the elements contained in the slot. |
The slot to be extracted is defined by matching "slot" against slot names of the first object in the list.
Slot extraction is done with sapply and the format of the output will depend on the content of the slots (see the value returned by sapply for details).
sc |
vector or matrix. |
Alexandre Kuhn alexandre.m.kuhn@gmail.com
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.