Trial.Rd
Create a phenotyping Trial containing all of the provided properties. Trial Name, Breeding Program, Location, Year, Design Type and Description are required. All optional properties can be added as a named value in the properties list.
Trial(
trial_name = NULL,
breeding_program = NULL,
location = NULL,
year = NULL,
design_type = NULL,
description = NULL,
properties = list()
)
A name for the trial (must be unique across the entire database)
The name of the breeding program that managed the trial (must exist in database)
The name of the location where the trial was held (must exist in database)
The year the trial was held
The shorthand for the design type (CRD, RCBD, Alpha, Augmented, MAD, Westcott, Lattice)
Additional text with any other relevant information about the trial
(optional) Additional trial properties (as a named list)
Trial
See Class Trial for all optional trial properties
Use the getTrialDesignTypes
function to get a list of supported Trial design types and the
getTrialTypes
function to get a list of the supported Trial types.
Other Trial:
Plot-class
,
PlotData-class
,
PlotData
,
Plot
,
Trial-class
,
buildPlotDataTemplate()
,
buildPlotTemplate()
,
buildTrialTemplate()
,
createPlots()
,
getTrialDesignTypes()
,
getTrialTypes()
,
printPlots()
,
setTrialPlots()
,
writePlotDataTemplate()
,
writePlotTemplate()
,
writeTrialTemplate()
# Create a Trial with just the required parameters
trial1 <- Trial("UMOPN_2019_Madison", "University of Wisconsin", "Madison, WI", 2019, "RCBD", "UMOPN Nursery Trial")
# Create a Trial with optional parameters
opts <- list(planting_date = "2019-04-25", harvest_date = "2019-10-05", trial_type = "phenotyping_trial")
trial2 <- Trial("UMOPN_2019_Arlington", "University of Wisconsin", "Arlington, WI", 2019, "RCBD", "UMOPN Nursery Trial", opts)