create a meta-data file with design factors, planting dates etc
Source:R/create_meta_file.R
create_meta_file.Rd
create a meta-data file with design factors, planting dates etc
Arguments
- x
a list of trials to generate metadata for
- season
trial season e.g
"season-2024"
- d_dir
folder directory to write the meta-data e.g.,
"C://Users/Documents"
Examples
f <- system.file("uon-trial-1.csv", package = "pbwrangler")
df <- read_workbooks(dir = NULL, file_to_read = f)
#> Rows: 108 Columns: 32
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (8): unique, geno, flowering_date, flower_colour, flesh_colour, skin_co...
#> dbl (24): plot, entry, row, col, rep, ntp, npe, growth_speed, pgh, plant_uni...
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
create_meta_file(df, season = "season-2024", d_dir = tempdir())
#> $`season-2024`
#> # A tibble: 1 × 17
#> trial_name breeding_program location year transplanting_date design_type
#> <lgl> <lgl> <chr> <chr> <lgl> <lgl>
#> 1 NA NA NA 2024 NA NA
#> # ℹ 11 more variables: description <lgl>, trial_type <lgl>, plot_width <lgl>,
#> # plot_length <lgl>, planting_date <date>, harvest_date <date>,
#> # number_of_plants_per_ridge <lgl>, number_of_ridges_per_plot <lgl>,
#> # space_between_ridges <lgl>, space_between_plants_in_ridges <lgl>,
#> # number_of_plants_per_plot <lgl>
#>