Learn R Programming

ofpetrial (version 0.1.2)

add_blocks: Add blocks to trial design

Description

Delineate blocks on a trial design and assign block id to all the plots

Usage

add_blocks(td)

Value

trial design with block_id added

Arguments

td

trial design made by applying assign_rates() to experimental plots made by make_exp_plots()

Examples

Run this code
#--- load rate information ---#
data(td_single_input)

#--- add blocks ---#
td_with_blocks <- add_blocks(td_single_input)

#--- take a look ---#
td_with_blocks$trial_design

#--- visualize ---#
viz(td_with_blocks, type = "block_id")

Run the code above in your browser using DataLab