Learn R Programming

editrules (version 2.9.5)

datamodel: Summarize data model of an editarray in a data.frame

Description

Summarize data model of an editarray in a data.frame

Usage

datamodel(E)

Value

data.frame describing the categorical variables and their levels.

Arguments

E

editarray

See Also

checkDatamodel

Examples

Run this code

E <- editarray(expression(
    age %in% c('under aged','adult'),
    positionInHouseholda  %in% c('marriage partner', 'child', 'other'),
    maritalStatus %in% c('unmarried','married','widowed','divorced'),
    if (maritalStatus %in% c('married','widowed','divorced') ) positionInHousehold != 'child',
    if ( age == 'under aged') maritalStatus == 'unmarried'
    )
)
datamodel(E)

Run the code above in your browser using DataLab