make_nir_file: Make a dataframe for printing NIR envelopes for the yield...

View source: R/make_nir_file.R

make_nir_fileR Documentation

Make a dataframe for printing NIR envelopes for the yield trials

Description

This function takes cleaned leadsheet data, cleaned yield data, and a lookup table to convert leadsheet test names to yield file test names and returns a dataframe ready to export for printing NIR envelopes.

Usage

make_nir_file(
  leadsheet_data = NULL,
  yield_data = NULL,
  yield_lookup = NULL,
  nir_startnumber = 1
)

Arguments

leadsheet_data

Leadsheet data that has already been processed with the "clean_lead_sheets" function

yield_data

Yield file data that has already been processed with the clean_yield_files function

yield_lookup

A lookup table used to map the test names used in the leadsheets to the test names used in the yield files. This should be a dataframe or tibble where the first column holds the test names that are used in the leadsheets and the second column uses the names that are used in the field note files.

nir_startnumber

What NIR number to start on


jhgille2/snfR documentation built on Jan. 31, 2023, 2:13 a.m.