Learn R Programming

cbq (version 0.2.0.4)

is.dichotomous: Check if a predictor is dichotomous, adopted from package circGLM

Description

Check if a predictor is dichotomous, adopted from package circGLM

Usage

is.dichotomous(x)

Value

A logical, TRUE if the x has dummy coding (0, 1),

FALSE otherwise.

Arguments

x

A character or numerical vector to be tested.