create.fb.pt: Create potato fieldbook

View source: R/create_fb.R

create.fb.ptR Documentation

Create potato fieldbook

Description

Creates a potato fieldbook with short labels.

Usage

create.fb.pt(
  design,
  label = c("standard", "CO"),
  minimal = TRUE,
  add = NULL,
  computation = FALSE
)

Arguments

design

The name of the design data frame.

label

Use standard for standard potato short labels or CO for CO numbers. Default is standard.

minimal

Logical, if TRUE, a minimal list of traits is included. Default is TRUE.

add

Additional traits to include. Only if minimal = TRUE.

computation

Logical, if TRUE, computed traits are included. Only if minimal = FALSE. Default is FALSE.

Details

Only labels listed in function check.names.pt are valid. Uppercase labels are converted to lowercase.

Value

It returns a data frame with fieldbook design and traits.

Author(s)

Raul Eyzaguirre.

Examples

book <- cr.rcbd(1:20, 3, 10)$book
# Get fieldbook with minimal set of traits
create.fb.pt(book)
# Add additional traits
create.fb.pt(book, add = c('bc', 'fe', 'zn'))
# Get the fieldbook with CO numbers
create.fb.pt(book, label = 'CO', add = c('dm', 'fedw', 'zndw'))

reyzaguirre/st4gi documentation built on April 20, 2024, 3:53 a.m.