NVTconvert: A function to output NVT trial designs

View source: R/NVTconvert.R

NVTconvertR Documentation

A function to output NVT trial designs

Description

NVTconvert takes an NVT provided wide format trial designs and outputs each individual trial as a figure for a user define crop species.

Usage

NVTconvert(x, Crop.Species, Sub.Series = NULL, Location, State, Code)

Arguments

x

A data.frame

Crop.Species

User define crop species i.e. Wheat. Needs to be character input...."Wheat"

Sub.Series

User defined crop sub-series. In wheat there are differne sub-series such as Durum. Default is NULL and will plot everything for a particular crop species.

Location

A character stipulating the name of the column containing the location data...."Site.Location"

State

A character stipulating the name of the column containing the state data...."State"

Code

A character stipulating the name of the colunn containing the trialname data...."Trial.Name"

Value

Long format data frame and .jpeg trial design figures.

Author(s)

Calum Watt, cwatt@intergrain.com

Examples

NVTconvert(data, 
      Crop.Species = "Wheat",
      Sub.Series = "Main Season", 
      Location = "SiteDescription", 
      State = "State", Code = "TrialCode")

CalumWatt/NVTconvert documentation built on Sept. 3, 2022, 11:38 p.m.