list.pos: Finds the position of a named list element within a list...

Description Usage Arguments Details

Description

All elements in the input list must have a name for this function to give accurate positions. This function can accept a character vector and return the position of each name in the vector.

Usage

1
list.pos(x, lst)

Arguments

x

A character vector of possible list element names. The names in the character vector will be used as names (element headings) in the results vector.

lst

A list with all elements named. If each element does not have a name then there can be no garuantee to the accuracy of the results.

Details

Will return a character vector with names for each element corresponding to the names in the character vector given to the function.If a name is not present in the list then NA is returned.


seasmith/ggloop documentation built on May 29, 2019, 4:56 p.m.