as.mutex: Conert mutually exclusive columns to a factor

Description Usage Arguments Value Note Examples

View source: R/as.mutex.R

Description

Conert mutually exclusive columns to a factor

Usage

1

Arguments

data

data to convert

names

names of columns in data to treat as mutually exclusive

ordered

logical; whether the factor should be ordered

Value

factor

Note

Examples

1
2
  # as.mutex( ci2, c('saltsnackyuk', 'saltsnackok', 'saltsnackyum' ), ordered=TRUE )
  

decisionpatterns/coercion documentation built on Nov. 4, 2019, 10:23 a.m.