check_false_binary: Check if a vector has two unique elements.

Description Usage Arguments Details Examples

View source: R/binary_swaps.R

Description

check_false_binary returns TRUE if there are two unique elements in its argument, and returns FALSE if there are not two unique elements in its argument.

Usage

1
check_false_binary(bin_chain)

Arguments

bin_chain

A one dimensional vector.

Details

This function is not designed to be used outside of this package. It is sufficiently simple as to be practically redundant to the user.

Examples

1
2
3
4
check_false_binary(c(1,0,0,1,0,0,0,1))
check_false_binary(c("A","B","B","B","A","B","A","A"))
check_false_binary(c(TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,
FALSE))

cwcartmell/maRkov documentation built on May 12, 2017, 2:25 p.m.