is.binary: Check if a variable is binary

Description Usage Arguments Value Author(s)

View source: R/matchMulti-internal.R

Description

Examines a vector that is not coded as a logical to see if it contains only 0s and 1s.

Usage

1

Arguments

x

A vector.

Value

a logical value, TRUE if the vector contains only 0s and 1s and FALSE otherwise.

Author(s)

Luke Keele, Penn State University, [email protected]

Sam Pimentel, University of Pennsylvania, [email protected]


matchMulti documentation built on Nov. 17, 2017, 4:03 a.m.