Learn R Programming

editrules (version 2.9.3)

contains: Determine which edits contain which variable(s)

Description

For an editmatrix, variables with coefficients smaller than tol are considered not to be contained in an edit.

matrix method for contains

editmatrix method for contains

contains method for editarray

contains method for cateditmatrix

contains method for editset

Usage

contains(E, var = NULL, ...)

# S3 method for matrix contains(E, var = NULL, tol = sqrt(.Machine$double.eps), ...)

# S3 method for editmatrix contains(E, var = NULL, tol = sqrt(.Machine$double.eps), ...)

# S3 method for editarray contains(E, var = NULL, ...)

# S3 method for editset contains(E, var = NULL, ...)

# S3 method for editset contains(E, var = NULL, ...)

Value

logical vector of length nrow(E), TRUE for edits containing var

Arguments

E

editarray, editmatrix, editset, or matrix

var

character, names of a categorical variables in E. If var=NULL, all variables are treated.

...

arguments to be passed to other methods

tol

tolerance to check zero-entries