vectortostring: Converts a binary vector to character strings

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/mainfunctions.R

Description

Converts a binary vector or matrix in PG(n-1,2) into string-vector/matrix .

Usage

1

Arguments

arry

A binary vector or a matrix of binary vectors representing a flat or spread/star in PG(n-1,2) (see Details and Examples of checkSpreadEquivalence).

Details

Takes an array (a binary vector or an array of binary vectors, upto three dimensions) and returns the character string representation of the vectors. This can be used for reporting spreads and stars in an easy-to-read format. Recall that a sprad/star should be formatted as a 3-dimensional array with star[i,j,k] indicating whether or not the ith basic factor is present in the jth effect of the kth flat of star. See Spencer et al. (2019) for details.

Value

Character string representation of the input arry.

Author(s)

Neil Spencer, Pritam Ranjan, Franklin Mendivil

References

Spencer, N.A., Ranjan, P., and Mendivil, F., (2019), "Isomorphism Check for 2^n Factorial Designs with Randomization Restrictions", Journal of Statistical Theory and Practice, 13(60),1-24 [https://doi.org/10.1007/s42519-019-0064-5]

See Also

checkSpreadIsomorphism for checking the isomorphism of balanced spreads.
checkStarIsomorphism for checking the isomorphism of balanced covering stars.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Example 1: converts c(0,1,1,0) into "BC"
vec = c(0,1,1,0)
vectortostring(vec)



## Example 2: converts "spreadn6t3a" into character string representation
data(spreadn6t3a)
vectortostring(spreadn6t3a)



## Example 3: converts "starn5t3a" into character string representation
data(starn5t3a)
vectortostring(starn5t3a)

IsoCheck documentation built on March 25, 2020, 5:09 p.m.