Write trial design files for field implementation
Source:R/write_trial_files.R
write_trial_files.Rd
Write out all the necessary files to implement the trial design created. Exported files include
Arguments
- td
(tibble) a tibble of a trial design created by applying assign_rate() to experimental plots made by make_exp_plots().
- folder_path
(character) path to the folder in which the files will be saved
- ext
(character) Default = "shp". Extension to use to save the files, "geojson" or any other extension supported by sf::st_write()
- zip
(logical) Default = FALSE. If TRUE, all the files that are being written will be zipped.
- zip_name
(character) name of the zip file created when zip = TRUE.
Examples
#--- load trial design ---#
data(td_two_input)
write_trial_files(
td = td_two_input,
folder_path = tempdir(),
zip = FALSE
)
#> Writing the trial design as .shp files.
#> Writing the trial design as .shp files.
#> Writing the ab-lines as .shp files.
#> Writing the ab-lines as .shp files.
#> Writing the harvester ab-line as .shp file.