indexList | R Documentation |
Given a list-like first argument, this function extracts one or more of its elements. Numeric and character indexing are allowed.
indexList(list, index = NULL)
list |
A list-like object, with a |
index |
A vector of integers or strings, or |
If index
is NULL
, the whole list is returned.
Otherwise, if index
has length one, the corresponding element is
extracted and returned. Otherwise a list containing the requested subset
is returned.
This function is not type-safe, in the sense that its return type depends on its arguments. It should therefore be used with care.
Jon Clayden
Please cite the following reference when using TractoR in your work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v044.i08")}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.