View source: R/matchMulti-internal.R

is.binary | R Documentation |

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

is.binary(x)

`x` |
A vector. |

a logical value, `TRUE`

if the vector contains only 0s and 1s
and `FALSE`

otherwise.

Luke Keele, Penn State University, ljk20@psu.edu

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.