Skip to contents

Given a host-parasite edgelist, this function can validate species names, provide further taxonomic information (thanks to taxize), and remove records only to genus level.

Usage

cleanData(edge, speciesOnly = FALSE, validateHosts = FALSE)

Arguments

edge

Host-parasite edgelist obtained from findLocation, findHost, or findParasite

speciesOnly

boolean flag to remove host and parasite species where data are only available at genus level (default = FALSE)

validateHosts

boolean flag to check host species names against Catalogue of Life information and output taxonomic information (default = FALSE)

Value

cleanEdge Host-parasite edgelist, but cleaned

Details

Use data(locations) for a list of possible locations.

Author

Tad Dallas