Error in seq.default(0, length(dats), sample_freq) : object 'sample_freq' not found Calls: unique -> seq -> seq.default Execution halted