alter_to_true_binary_multiple: Take a two dimensional matrix with two unique values and...

Description Usage Arguments Details Examples

Description

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

Usage

1
alter_to_true_binary_multiple(bin_chains, success)

Arguments

bin_chains

A two 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_multiple and only used in alter_to_true_binary if check_false_binary_multiple returns TRUE.

Examples

1
2
3
4
alter_to_true_binary_multiple(matrix(data = c("A","B","A","B","A","B","B",
"A","A"), ncol = 3), success = NULL)
alter_to_true_binary_multiple(matrix(data = c(TRUE,TRUE,TRUE,FALSE,FALSE,
TRUE,FALSE,FALSE,TRUE,TRUE,FALSE), ncol = 3), success = NULL)

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