Learn R Programming

editrules (version 2.9.5)

ind2char: Derive textual representation from (partial) indices

Description

Derive textual representation from (partial) indices

Usage

ind2char(ivd, ind = ivd, invert = logical(length(ivd)), useEqual = TRUE)

Value

For every entry in ind, a character vector is returned where each entry is a statement of the form "<var> %in% c('<cat1>',...,'<catN>')" or "<var> == '<catt>'"

if invert==TRUE. If invert==FALSE, the negation of the above statements is returned.

Arguments

ind

a list, usually a (part of) the 'ind' attribute of an editarray

invert

logical vector of lenght length(ind)