Learn R Programming

ofpetrial (version 0.1.2)

assign_rates: 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)

Value

trial design as sf (experiment plots with rates assigned)

Arguments

exp_data

experiment plots created by make_exp_plots()

rate_info

rate information created by prep_rate()

Examples

Run this code
#--- 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)

Run the code above in your browser using DataLab