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 traits in an experiment with an ABD.

Usage

repo.abd(
  traits,
  geno,
  rep,
  dfr,
  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

traits

The traits to analize.

geno

The genotypes.

rep

The replications.

dfr

The name of the data frame.

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
temp <- pjpz09[c(1, 2, 9, 10, 13, 14, 27, 29, 31, 33, 35, 37, 40, 42, 44, 46, 48, 50, 169, 170), ]
repo.abd(c("trw", "vw"), "geno", "rep", temp)
# With some missing values
temp[c(1, 2, 3), "trw"] <- NA
temp[c(1, 10, 15), "vw"] <- NA
repo.abd(c("nocr", "trw", "vw"), "geno", "rep", temp)

reyzaguirre/pepa documentation built on April 20, 2024, 3:50 a.m.