rot: Generating a New Design Matrix

Description Usage Arguments Value Examples

View source: R/rot.R

Description

Create the new design matrix from a triple foldover techinque using a rotation vector

Usage

1
rot(D, rotation_vector, unique = TRUE)

Arguments

D

The original design matrix that you would like expanded upon, must come in coded with 0,1,2's

rotation_vector

The rotation vector with the same length as the column width of the design matirx. Entries may be 0, 1, or 2.

unique

Should rows that are repeated be removed? Default is TRUE

Value

This will return a data frame such that the triple foldover has been applied to the original design D.

Examples

1
2
3
4
5
6
## Not run: 
design <- matrix(c(1,2,1,0,1,1,1,2,2), byrow = TRUE, nrow = 3)
x <- c(1, 2, 0)
rot(design, x)

## End(Not run)

vinny-paris/optrotvec documentation built on April 9, 2021, 4:34 a.m.