Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/mainfunctions.R
Converts a binary vector or matrix in PG(n-1,2)
into string-vector/matrix .
1 | vectortostring(arry)
|
arry |
A binary vector or a matrix of binary vectors representing a flat or spread/star in |
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.
Character string representation of the input arry
.
Neil Spencer, Pritam Ranjan, Franklin Mendivil
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]
checkSpreadIsomorphism
for checking the isomorphism of balanced spreads.
checkStarIsomorphism
for checking the isomorphism of balanced covering stars.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.