vectortostring {IsoCheck} | R Documentation |
Converts a binary vector to character strings
Description
Converts a binary vector or matrix in PG(n-1,2)
into string-vector/matrix .
Usage
vectortostring(arry)
Arguments
arry |
A binary vector or a matrix of binary vectors representing a flat or spread/star in |
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 i
th basic factor is present in the j
th effect of the k
th 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
## 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)