library(tidyverse)
Adding a bit of cleaning error detection and metadata should do it. Ultimate objective could be to automate Fourier’s decomposition.