binary.levels.split: Create a list of binary levels from factors. Compares a...

View source: R/support.r

binary.levels.splitR Documentation

Create a list of binary levels from factors. Compares a vector x against a set of factors and returns a list for each factor which indicates whether x is equal to that factor or not.

Description

Create a list of binary levels from factors. Compares a vector x against a set of factors and returns a list for each factor which indicates whether x is equal to that factor or not.

Usage

binary.levels.split(x, f = sort(unique(x)))

Arguments

x

vector

f

factors. Defaults to the unique set of values in x.

Value

list of binary levels


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.