yieldconvert {doebioresearch}R Documentation

Convert the yield data of plot into different units

Description

The function converts the yield data of plot into qtl/ha, tonnes/ha, qtl/acre or tonnes/acre depending on the option chosen.

Usage

yieldconvert(yield.in.kg, length.of.plot, width.of.plot, choose.convert.to)

Arguments

yield.in.kg

yield data in kilograms

length.of.plot

length of plot in m

width.of.plot

width of the plot in m

choose.convert.to

0 for qtl/ha, 1 for tonnes/ha, 2 for qtl/acre and 3 for tonnes/acre

Value

converted yield

Examples

#Convert yield vector obtained from 10m x 5m plot into different forms
yield<-c(10,15,12,16,19,25,30,25,11)
#For converting into qtl/ha
yieldconvert(yield,10,5,0)
#For converting into tonnes/ha
yieldconvert(yield,10,5,1)
#For converting into qtl/acre
yieldconvert(yield,10,5,2)
#For converting into tonnes/acre
yieldconvert(yield,10,5,3)

[Package doebioresearch version 0.1.0 Index]