Expects a data.frame with an href variable for filtering. The default patterns are based on an examination of unfiltered link tables from ECOS species pages, but additional link patterns to be removed can be added using the optional patterns parameter, with the patterns using regex expressions expected by grepl.

remove_silly_links(df, patterns = list())

Arguments

df
A data.frame with four columns, including href, link, and text
patterns
A list of additional patterns to be filtered out

Value

A filtered version of df