assign_rates {ofpetrial} | R Documentation |
Assign rates to the plots of experimental plots
Description
This functions assign input rates for the plots created by make_exp_plots() according to the rate designs specified by the user in rate_info, which can be created by prep_rateingle().
Usage
assign_rates(exp_data, rate_info)
Arguments
exp_data |
experiment plots created by make_exp_plots() |
rate_info |
rate information created by prep_rate() |
Value
trial design as sf (experiment plots with rates assigned)
Examples
#--- load experiment plots made by make_exp_plots() ---#
data(exp_data)
exp_data
#--- load rate information ---#
data(rate_info)
rate_info
#--- assign rates ---#
td <- assign_rates(exp_data, rate_info)
#--- visualization of the assigned rates ---#
viz(td)
[Package ofpetrial version 0.1.1 Index]