A function that cleans and formats sr.

regroup_channels(channels, by_id)

Arguments

channels

the table describing channels

sr

tibble with columns l and z describing first profile

Value

a clean sr data with variables id, l, and z (arranged by ascending l)