In a list of object of the same type, find those that match the input
A list of objects of the same type.
The object to match.
Typically, toMatch will contain a subset of the variables that are in the objects in the list. Any
object matching all variables in
toMatch will be included in the result.
A list of objects that match the
x <- list( a = list(name = "John", age = 25, gender = "M"), b = list(name = "Mary", age = 24, gender = "F") ) matchInList(x, list(name = "Mary")) # $a # $a$name #  "John" # # $a$age #  25 # # # $b # $b$name #  "Mary" # # $b$age #  24
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.