Convert randpicks file from segchopr format to swfscDAS format
randpicks_convert(x.randpicks, x.segdata, seg.km)
Data frame with two columns;
randpick values formatted for segchopr that correspond to x.segdata
Data frame; segdata that corresponds to x.randpicks
numeric; target segment length used when creating x.segdata
Data frame with one line for each continuous effort section in x.segdata
,
and two columns: effort_section
and randpicks
Past DAS processing code (segchopr) only recorded the generated random values,
whereas swfscDAS randpicks files contain one line for each continuous effort section.
See das_chop_equallength
for more details about the swfscDAS randpicks format.
This function 'converts' a randpicks data frame generated by segchopr
to a data frame that meets the swfscDAS randpicks format requirements