tarpuy_design: Fieldbook experimental designs

View source: R/tarpuy_design.R

tarpuy_designR Documentation

Fieldbook experimental designs

Description

Function to deploy experimental designs

Usage

tarpuy_design(
  data,
  nfactors = 1,
  type = "crd",
  rep = 2,
  zigzag = FALSE,
  nrows = NA,
  serie = 100,
  seed = NULL,
  fbname = NA
)

Arguments

data

Experimental design data frame with the factors and level. See examples.

nfactors

Number of factor in the experiment(default = 1). See details.

type

Type of experimental arrange (default = "crd"). See details.

rep

Number of replications in the experiment (default = 3).

zigzag

Experiment layout in zigzag [logic: FALSE].

nrows

Experimental design dimension by rows [numeric: value]

serie

Number to start the plot id [numeric: 100].

seed

Replicability of draw results (default = 0) always random. See details.

fbname

Barcode prefix for data collection.

Details

The function allows to include the arguments in the sheet that have the information of the design. You should include 2 columns in the sheet: {arguments} and {values}. See examples. The information will be extracted automatically and deploy the design. nfactors = 1: crd, rcbd, lsd, lattice. nfactors = 2 (factorial): split-crd, split-rcbd split-lsd nfactors >= 2 (factorial): crd, rcbd, lsd.

Value

A list with the fieldbook design

Examples


## Not run: 

library(inti)
library(gsheet)

url <- paste0("https://docs.google.com/spreadsheets/d/"
              , "1_BVzChX_-lzXhB7HAm6FeSrwq9iKfZ39_Sl8NFC6k7U/edit#gid=1868565342")
# browseURL(url)

fb <- gsheet2tbl(url) 

dsg <- fb %>% tarpuy_design() 

dsg %>% 
  tarpuy_plotdesign()


## End(Not run)

inti documentation built on Oct. 27, 2023, 9:06 a.m.