Learn R Programming

circglmbayes (version 1.3.0)

is.dichotomous: Check if a predictor is dichotomous

Description

Check if a predictor is dichotomous

Usage

is.dichotomous(x)

Arguments

x

A character or numerical vector to be tested.

Value

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