Apologies for the simplicity of the question as I am a novice with R.
I have a large number of 1-minute audio files, with 1 minute recorded every 5 minutes. I need them organised by hour and saved to a new folder, so every 12 files need to be saved to a new folder. I have 7472 of these files so doing this manually would take too long.
Here is an example of the file names:
20210111_000500.wav,
20210111_001000.wav,
20210111_001500.wav,
20210111_002000.wav,
20210111_002500.wav,
20210111_003000.wav,
20210111_003500.wav,
20210111_004000.wav,
20210111_004500.wav,
20210111_005000.wav,
20210111_005500.wav,
which I want to all be in one folder, with the next hour starting as
20210111_010000.wav
and so on.
How would I go about doing this?
Any help is much appreciated, thank you!
You could try something along these lines. I first find all the .wav files, then define the folders, create the folders and finally move the .wav files to the new folders.