I agree that this would be clearer.  I have changed this in all necessary places and have also written a new function, _set_abundance_suffix() to simultaneously check that the user has entered a valid string and also set abund variable to either "cor" or "pho", to be used in calling the correct csv file.