Learn R Programming

expss (version 0.7.1)

mrset: Create multiple response set/multiple dichotomy set from variables

Description

These functions are intended for usage with tables - tables, cro, cro_fun. Result of mrset is considered as muliple-response set with category encoding and result of mdset is considered as multiple response set with dichotomy (dummy) encoding e. g. with 0 or 1 in the each column. Each column in the dichotomy is indicator of absense or presense of particular feature. Both functions don't convert its arguments to anything - it is supposed that arguments already have appropriate encoding. For conversation see as.dichotomy or as.category.

Usage

mrset(..., label = NULL)

mdset(..., label = NULL)

Arguments

...

variables

label

character optional label for multiple response set

Value

data.frame of class category/dichotomy

See Also

as.dichotomy, as.category

Examples

Run this code
# NOT RUN {
data(product_test)
a1 = calculate(product_test, mrset(a1_1 %to% a1_6))

# }

Run the code above in your browser using DataLab