R function to abbreviate scientific names on a list.
Ecological Synthesis Lab (SintECO).
Authors: Guillermo L. Florez-Montero & Marco A. R. Mello.
E-mail: marmello@usp.br.
Published on October 15th, 2020 (English version).
Run in R version 4.0.2 (2020-06-22) -- "Taking Off Again".
Disclaimer: You may freely use the software and data provided here for any purposes at your own risk. We assume no responsibility or liability for the use of this material, convey no license or title under any patent, copyright, or mask work right to the product. We reserve the right to make changes in the material without notification. We also make no representation or warranty that such application will be suitable for the specified use without further testing or modification. If this material helps you produce any academic work (paper, book, chapter, monograph, dissertation, report or similar), please acknowledge the authors and cite the source.
This is a very simple, custom-made R function to abbreviate scientific names. We wrote it to produce short codes to be used in figures, especially graphs representing interaction networks.
-
AbbreviatedNames.R -> customized R function to abbreviate scientific names.
-
names.csv -> example data set. This is the list of species studied by Genrich et al. (2017, Oikos).
-
names.R -> R script to load the example data set and apply the function to it.
-
Run the script "names.R";
-
Follow the instructions provided in the script;
-
Check the result.
If you have any questions, corrections, or suggestions, please feel free to open an issue or make a pull request.
We thank our sponsors, especially the Alexander von Humboldt-Stiftung, CNPq, CAPES, and FAPESP, who gave us grants, fellowships, and scholarships. Last, but not least, we thank the Stack Overflow Community, where we solve most of our coding dilemmas. This particular dilemma was solved in this topic.