repo.met.agro: Automatic report for a MET with a RCBD

View source: R/repo_met_agro.R

repo.met.agroR Documentation

Automatic report for a MET with a RCBD

Description

Produces an automatic report for selected traits in a multi environment trial (MET) with a RCBD in each environment.

Usage

repo.met.agro(
  traits,
  trt,
  env,
  rep,
  dfr,
  maxp = 0.1,
  title = "Automatic report for a MET with a RCBD",
  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.

trt

The treatments.

env

The environments.

rep

The replications.

dfr

The name of the data frame containing the data.

maxp

Maximum allowed proportion of missing values to estimate, default is 10%.

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 a MET with a RCBD for the selected traits. If data is unbalanced, missing values are estimated up to an specified maximum proportion, 10% by default. Treatments and environments are considered as fixed factors while the blocks are considered as random and nested into the environments for ANOVA.

Value

It returns an automatic report about the MET with a RCBD fitted model.

Author(s)

Raul Eyzaguirre.

Examples

repo.met.agro(c("rytha", "fytha"), "geno", "env", "rep", megaclones)

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