makeBreedbaseTrial: makeBreedbaseTrial function to create breedbase multi trial...

View source: R/makeBreedbaseTrial.R

makeBreedbaseTrialR Documentation

makeBreedbaseTrial function to create breedbase multi trial upload files

Description

function to create multi trial upload files for breedbase

Usage

makeBreedbaseTrial(
  trial,
  locLookUp = NULL,
  bags = NULL,
  rmFill = TRUE,
  breeding_program = "Virginia Tech",
  trial_type = "phenotyping_trial",
  design_type = "RCBD",
  planting_date = NULL,
  harvest_date = NULL,
  plot_width = NULL,
  weight_gram_seed_per_plot = NULL,
  num_seed_per_plot = NULL,
  plot_length = NULL,
  checks = NULL,
  field_size = NULL,
  description = NULL
)

Arguments

trial

object of class trialDesign

locLookUp

optional list or data.frame, list of length 2 with the first element being a character vector with location codes in the plot_name, and the second element being the long location name in City, State (abrv.) form. E.g. list(c("BLAVA", "WARVA"), c("Blacksburg, VA", "Warsaw, VA"))

bags

optinal data.frame from a bag file with plot, range and pass information. This is only needed if using trialDesigns for upload to include pass and range (trialDesigns dont have pass range information)

breeding_program

character string of length 1, with breeding program name

trial_type

character string of length 1, with trial type (refer to breedbase for options)

design_type

character string of length 1, with design type (refer to breedbase for options)

planting_date

optional, of the form 2020-10-23

harvest_date

optional, of the form 2021-6-12

plot_width

optional, numeric value for plot width

weight_gram_seed_per_plot

optional, numeric value for grams of seed per plot

num_seed_per_plot

optional, numeric value for number of seeds per plot

plot_length

optional, numeric value for plot length

checks

optional, character vector of check names

field_size

numeric, field size in hectares

description

character vector, length 1 to append to begining of trial name for breedbase description

Details

uses T3 rules to reformat line names

Value

data.frame formated breedbase multi trial upload file

Examples

# none.

nsantantonio/fieldMapR documentation built on Feb. 4, 2025, 3:07 a.m.