Process Raw Sample Plan
process_raw_sample_plan.Rd
process_raw_sample_plan
Arguments
- filepath
the filepath of the raw sample plan to be processed
- season
the season for which the sample plan was developed. format YYYY
Value
a tidy dataframe that can be passed directly to add_sample_plan()
. Has the following columns:
location_code
sample_event_number
first_sample_date
sample_bin_code
min_fork_length
max_fork_length
expected_number_of_samples
Details
this function assigns an maximum fork length of 200mm to all fork length bins that
are a "plus" (i.e. a fork length bin that is 130+
will be assigned a minimum fork length of 130 and
a maximum fork length of 200
). The function will also assign a first_sample_date
of January 1st
of the season (if you pass season = 2024
, the first_sample_date
will be 2024-01-01
).