repo.abd: Automatic report for an augmented block design (ABD)

View source: R/repo_abd.R

repo.abdR Documentation

Automatic report for an augmented block design (ABD)

Description

Produces an automatic report for selected variables in an experiment with an ABD.

Usage

repo.abd(
  dfr,
  vars,
  geno,
  rep,
  title = "Automatic report for an Augmented Block Design (ABD)",
  subtitle = NULL,
  author = "International Potato Center",
  format = c("html", "word", "pdf"),
  server = FALSE,
  server_dir_name = "directory",
  server_file_name = "filename"
)

Arguments

dfr

The name of the data frame.

vars

The variables to analize.

geno

The genotypes.

rep

The replications.

title

Report title.

subtitle

Report subtitle.

author

Report author.

format

The output file format for the report, "html" by default. Other options are "word" and "pdf".

server

Logical. If "FALSE" works with local machines. Otherwise works in server environments.

server_dir_name

If "server = TRUE", this is the directory name in the server.

server_file_name

If "server = TRUE", this is the file name in the server.

Details

It fits a linear model for an ABD and explains the results.

Value

It returns an explanation about the ABD fitted model.

Author(s)

Raul Eyzaguirre.

Examples

# A subset that looks like an ABD
tmp <- pjpz09[c(1, 2, 9, 10, 13, 14, 27, 29, 31, 33, 35, 37, 40, 42, 44, 46, 48, 50, 169, 170), ]
repo.abd(tmp, c("trw", "vw"), "geno", "rep")
# With some missing values
tmp[c(1, 2, 3), "trw"] <- NA
tmp[c(1, 10, 15), "vw"] <- NA
repo.abd(tmp, c("nocr", "trw", "vw"), "geno", "rep")

reyzaguirre/pepa documentation built on March 29, 2025, 9:56 p.m.