Hello. I am looking to calculate the amplitudes for several sections of a timewave. The sections correspond to selections within a selection table, however I can only seem to use one selection per file. How may I be able to add multiple selections (more than one from= ..., to=...). Here is the code that works for one selection, how may I be able to add all of the selections within the selection table? (Hope that makes sense its hard to describe).
Next time when you make a post, try to create a reprex, that way it'll be more likely that folk will answer your question A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here:
In this case I used a dataset that comes with the seewave package to showcase the solution (which I hope is the solution you are looking for)