# Example usage of the function
splist <- c("Aphelandra cuscoenses",
"Piper stevensi",
"Sanchezia ovata",
"Verbesina andina",
"Festuca dentiflora",
"Eucrosia bicolor var. plowmanii",
"Hydrocotyle bonplandii var. hirtipes",
"Persea americana")
# Basic usage
check_redbooklist(splist = splist, dist = 0.2)
# Using base R with a data frame
plant_list <- data.frame(splist = splist)
plant_list$label <- check_redbooklist(plant_list$splist, dist = 0.2)
plant_list
Run the code above in your browser using DataLab