to_table: to_table

View source: R/hello.R

to_tableR Documentation

to_table

Description

Write field experiment information to a dataframe.

Usage

to_table(object, part = "net_plot", unit = "m", digits = 3, ...)

Arguments

object

an object, created by DOE_obj with a FieldLayout class

part

which part of the summary are you interested? Choose one of the following: "net_plot","gross_plot","field","experiment"

unit

a string that corresponds to measure unit (default is m)

digits

integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed

...

further arguments passed to or from other methods

Value

dataframe with corresponding information about the experiment

Examples

library(agricolaeplotr)
library(agricolae)
varieties<-c('perricholi','yungay','maria bonita','tomasa')
outdesign <-design.youden(varieties,r=2,serie=2,seed=23)
p <- plot_youden(outdesign, labels = 'varieties', width=4, height=3)
stats <- DOE_obj(p)
r <- to_table(stats,part = "net_plot", digits = 2)
r
r <- to_table(stats,part = "gross_plot", digits = 2)
r
r <- to_table(stats,part = "field", digits = 2)
r
r <- to_table(stats,part = "experiment", digits = 2)
r
r <- to_table(stats,part = "all", digits = 2)
r

agricolaeplotr documentation built on July 26, 2023, 5:47 p.m.