contains: Determine which edits contain which variable(s)

Description Usage Arguments Value

View source: R/contains.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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 'editset'
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 July 2, 2018, 1 a.m.