Learn R Programming

campsismod (version 1.2.1)

getByName: Get an element from a list by name. Never return more than 1 element.

Description

Get an element from a list by name. Never return more than 1 element.

Usage

getByName(object, name)

# S4 method for pmx_list,character getByName(object, name)

Value

the element that was found or NULL if no element was found with the same name

Arguments

object

list object

name

element name to search for