contains: Determine which edits contain which variable(s)

View source: R/contains.R

containsR Documentation

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.

Usage

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

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

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

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

## S3 method for class 'cateditmatrix'
contains(E, var = NULL, ...)

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

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

Value

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


editrules documentation built on June 22, 2024, 12:21 p.m.