alter_to_true_binary: Take a one dimensional vector with two unique values and...

Description Usage Arguments Details Examples

Description

alter_to_true_binary takes a one dimensional vector that contains two unique values and switches all of the values with either integer values 0 or 1, so that the resulting vector has a one-to-one correspondence with the original.

Usage

1
alter_to_true_binary(bin_chain, success)

Arguments

bin_chain

A one dimensional vector with two unique elements.

success

Denotes the data entry to be counted for run statistics.

Details

For this function to work properly, its argument should be checked first using check_false_binary, and only used in alter_to_true_binary if check_false_binary returns TRUE.

Examples

1
2
3
alter_to_true_binary(c("A","B","B","B","A","B","A","A"), success = NULL)
alter_to_true_binary(c(TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,
FALSE), success = NULL)

cwcartmell/maRkov documentation built on May 14, 2019, 1:37 p.m.