is.binary: Check if a variable is binary

Description Usage Arguments Value Author(s)

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, ljk20@psu.edu

Sam Pimentel, University of Pennsylvania, spi@wharton.upenn.edu



Search within the matchMulti package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.