cat_check: Check whether a variable is categorical

Description Usage Arguments Value

View source: R/utils.R

Description

cat_check checks whether a vector contains only 0 and 1 and thus is a dummy variable.

Usage

1

Arguments

x

vector containing values of a variable.

Value

TRUE, if the vector only contains 0 and 1, FALSE is the vector contains other values.


bpnreg documentation built on May 2, 2019, 6:37 a.m.