View source: R/tarpuy_design.R
| tarpuy_design | R Documentation |
Function to deploy the experimental designs currently supported by TARPUY.
tarpuy_design(
data,
nfactors = 1,
type = "crd",
rep = 2,
zigzag = FALSE,
nrows = NA,
serie = 100,
seed = NULL,
project = NA,
qrcode = "{project}{plots}"
)
data |
Experimental design data frame containing factor names and
levels. A design sheet may also include the columns |
nfactors |
Number of factors in the experiment |
type |
Type of experimental arrangement |
rep |
Number of replications or blocks in the experiment
|
zigzag |
Arrange the physical layout in zigzag order
|
nrows |
Number of rows in the physical field layout. When missing, the corresponding design function calculates the layout. |
serie |
Base number used to generate plot identifiers
|
seed |
Seed used for reproducible randomization. |
project |
Barcode prefix for data collection. |
qrcode |
Template used to concatenate QR-code fields
|
The design sheet can include two optional columns named
{arguments} and {values}. Values supplied in those columns
override the corresponding function arguments. Factor columns are the
remaining columns whose names are not enclosed in braces ({}) or square
brackets ([]).
TARPUY currently dispatches only designs with an implemented and validated generator: CRD/DCA, RCBD/DBCA, augmented, and split-plot RCBD. Other design identifiers are rejected explicitly instead of being routed to incomplete generators.
A data frame containing the generated fieldbook.
## Not run:
library(inti)
library(gsheet)
url <- paste0(
"https://docs.google.com/spreadsheets/d/",
"1510fOKj0g4CDEAFkrpFbr-zNMnle_Hou9O_wuf7Vdo4/edit"
)
fb <- gsheet2tbl(url)
dsg <- fb %>% tarpuy_design()
dsg %>% tarpuy_plotdesign()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.