make.vt: make.vt function

Description Usage Arguments Details Examples

View source: R/make.vt.R

Description

This is a wraper for FldTrial's design.rcbd fucntion, sepcificly for maing a standard VT type trial, in a RCB design where witin experiemnt fills are done with entries, Which may induce duplicaes witin blocks but makes for better planting files, adds functions to allow export of planting order and maps, it will also ad ZURN codes, and strips out uneeded extra columns, will also export a filed book type sheet for data collection.

Usage

1
2
3
4
make.vt(loc.to.use = NULL, loc.ids = NULL, trial.ids = NULL,
  experiment = NULL, entries = NULL, plot.start = 1000,
  number.blocks = 3, num.beds = NULL, year = NULL, zurn.seed = NULL,
  fill.entry = TRUE, fill.chk = FALSE)

Arguments

loc.to.use

REQUIRED is the name of the location useing hte code naem ie "crk"

loc.ids

REQUIRED is a csv file with the first column being "loc.number"which is the zurn number for the location, the second column"location" is the full name of the locatoin, the third column has the codeded location name i.e. "crk" must match input to loc.to.use, the fourth column "beds" has the number of beds i.e. rows of that location

trial.ids

REQUIRED is a csv file with teh first column "trial.number" has the trial id's fromt he zunr number,second column has the coded trail name i.e. "VT"

experiment

REQUIRED is the name of the experiment you are making ie "VT" must match trail.ids coded name

entries

REQUIRED is a csv file i.e.("18 VT 9jan18.csv") with one column "line" which has the list of the entries for the VT

plot.start

OPTIONAL the number of the first plot i.e. 0 or 1 or 1000 which ever, Default is 1

number.blocks

OPTIONALis the number of blocks to use i.e. 0 or 1 or 2 or 3. Defalut is 3

year

REQUIRED is the year of the planting i.e. 2018

zurn.seed

REQUIRED is the zurn code for the crop i.e. 5 for oat or 3 for barley

Details

This function allows you to make vt trials

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
setwd("/Volumes/CFANS/AGRO/Oat_Lab/R CODES for planting/2018/")# set working directory 

x<- make.vt(loc.to.use="mos",
           loc.ids="loc ids.csv",
           trial.ids="trial ids.csv",
           experiment="VT",
           entries="18 VT 9jan18.csv",
           plot.start=1000,
           number.blocks=3,
           year=2018, 
           zurn.seed=5)

maps<-x$map.file
files<-x$data.book

austinjcase/BreedR documentation built on May 16, 2019, 6:45 p.m.