This PR fixes #292. The column taxonIDReference cannot be removed via dplyr::select() in get_species() as this column is not anymore returned by check_species(). The reason is that this column is not anymore filled in metadata of version 1.0.
By using dplyr::any_of() we are sure check_species() works for both new and old versions of camtrapDP.
This PR fixes #292. The column
taxonIDReference
cannot be removed viadplyr::select()
inget_species()
as this column is not anymore returned bycheck_species()
. The reason is that this column is not anymore filled in metadata of version 1.0.By using
dplyr::any_of()
we are surecheck_species()
works for both new and old versions of camtrapDP.