I am trying using the re-name function and have selected the correct working directory and used list.files to get the old names, but not sure what to do now. I have a columns in a CSV file which precisely match the old name and the new name:
PS. the file extension ".0" is what comes with OPUS spectra files.
old-name    new-name
roth_666_1.0    N149_1.0
roth_666_2.0    N124_1.0
roth_666_3.0    N36_1.0
roth_666_4.0    N59_1.0
roth_666_5.0    N140_1.0
roth_666_6.0    N95_1.0
roth_666_7.0    N74_1.0
roth_666_8.0    N81_1.0
roth_666_9.0    N157_1.0
roth_666_10.0   N27_1.0
roth_666_11.0   N66_1.0
roth_666_12.0   N131_1.0
roth_666_13.0   N118_1.0
roth_666_14.0   N15_1.0
roth_666_15.0   N22_1.0
roth_666_16.0   N53_1.0
 
     
    