bcgov / wqbench

R package to generate download and compile data from EPA ECOTOX database
Apache License 2.0
3 stars 2 forks source link

match sure all add function have the match catch with proper messaging #14

Closed aylapear closed 1 year ago

aylapear commented 1 year ago
dont_match <- !(endpoint_concentration_pick$code %in% db_endpoint_code$code)
  if (any((dont_match))) {
    print("Value(s) do not match code(s) in `endpoint_codes` table in ECOTOX database:")
    print(endpoint_concentration_pick$code[dont_match])
  }
aylapear commented 1 year ago

Functions that have it added:

aylapear commented 1 year ago

Main ones have been done.

Ones not ticked, it doesn't make sense to check the lack of a matches as the external data is separate and not based on the original data