Skip to main content

list_element

Function list_element 

Source
unsafe fn list_element(sexp: SEXP, name: &str) -> Option<SEXP>
Expand description

The element of a generic vector bound to name: the first match in names(x), like x[[name]]. None when x has no character names or no element by that name.

§Safety

Must be called from R’s main thread; sexp must be a VECSXP.