Skip to contents

Check if an element exists in list.

Usage

contains(object, x)

# S4 method for pmx_list,pmx_element
contains(object, x)

# S4 method for statements_record,model_statement
contains(object, x)

# S4 method for campsis_model,pmx_element
contains(object, x)

Arguments

object

list object

x

element to check if exists

Value

logical value, TRUE or FALSE