Function to create a complete report of the fieldbook

fieldbook_report(
  data,
  fb_smr,
  variable,
  model_facts,
  dotplot_groups = NULL,
  model_diag = FALSE
)

Arguments

data

Field book data.

fb_smr

Summary of the variables in the fieldbook.

variable

Response variable.

model_facts

Model used for the experimental design.

dotplot_groups

Factors to compare. See details.

model_diag

Diagnostic for model (default = FALSE).

Value

data frame

Details

For compare the factors you should use ":". For example, to compare treatment1 and treatment2: treatment1:treatment2.

Examples

library(inti) library(googlesheets4) if (gs4_has_token()) { url <- paste0("https://docs.google.com/spreadsheets/d/" , "15r7ZwcZZHbEgltlF6gSFvCTFA-CFzVBWwg3mFlRyKPs/edit#gid=172957346") # browseURL(url) gs <- as_sheets_id(url) (data <- gs %>% range_read("fb")) (fb_smr <- gs %>% range_read("fbsm")) report <- fieldbook_report(data , fb_smr = fb_smr , variable = "LA" , dotplot_groups = "genotype" , model_diag = TRUE ) report }