load the list of food species to remove from an external file
Hi @slgora in Script 3 , can you load the list of species (see below your code) to remove from an external file instead than having them directly listed in script3?
it would make the code less cluttered and more scalable.
# Define the list of species to remove from forages
species_to_remove <- c(
"Glycine max (L.) Merr.",
"Vigna unguiculata (L.) Walp.",
"Cenchrus americanus (L.) Morrone",
"Cajanus cajan (L.) Millsp.",
"Vigna radiata var. radiata",
"Vigna radiata (L.) R. Wilczek",
"Panicum miliaceum L.",
"Panicum miliaceum subsp. miliaceum",
"Eragrostis tef (Zuccagni) Trotter",
"Vigna angularis (Willd.) Ohwi & H. Ohashi",
"Vigna mungo (L.) Hepper",
"Vigna subterranea (L.) Verdc.",
"Lablab purpureus (L.) Sweet",
"Vigna umbellata (Thunb.) Ohwi & H. Ohashi",
"Vigna unguiculata subsp. unguiculata",
"Trigonella foenum-graecum L.",
"Paspalum scrobiculatum L.",
"Panicum sumatrense Roth",
"Vigna aconitifolia (Jacq.) Maréchal",
"Vigna unguiculata group sesquipedalis"
)