repo.nc: Automatic report for a North Carolina genetic design.

View source: R/repo_nc.R

repo.ncR Documentation

Automatic report for a North Carolina genetic design.

Description

Produces an automatic report for a North Carolina I, II or III genetic design analysis.

Usage

repo.nc(
  traits,
  set,
  male,
  female,
  progeny = NULL,
  rep,
  model,
  dfr,
  title = NULL,
  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.

set

The set.

male

The male.

female

The female.

progeny

The progeny (only for Carolina I design).

rep

The replication.

model

1, 2 or 3.

dfr

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.

Value

It returns an ANOVA and related quantities.

Author(s)

Raul Eyzaguirre.

Examples

library(agricolae)
data(DC)
carolina1 <- DC$carolina1
repo.nc("yield", "set", "male", "female", "progenie", "rep", 1, carolina1)
carolina2 <- DC$carolina2
carolina2 <- carolina2[carolina2$Loc == 1, c(2, 5, 4, 3, 7, 8)]
repo.nc(c("yield", "tuber"), "set", "male", "female", NULL, "rep", 2, carolina2)
carolina3 <- DC$carolina3
repo.nc("yield", "set", "male", "female", NULL, "rep", 3, carolina3)

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