riparias / rato-occurrences

DwC mapping of RATO vwz occurrences
MIT License
0 stars 1 forks source link

waarneming now has trailing whitespace by default, tripping multiple value detection #152

Closed PietrH closed 8 months ago

PietrH commented 8 months ago
          Records with multiple values for `Waarneming` are currently removed until #23 is fixed, however, this is detected on a separator including a space. This separator seems to be present in a lot of records even if there aren't multiple values. 

Remove occurrences containing multiple type - value pairs information in column waarneming (patch until #23 is solved):

#remove records with multiple values for waarneming
input_data %<>%
  filter(is.na(.data$waarneming) | 
           !str_detect(.data$waarneming, pattern = "; "))

Originally posted by @PietrH in https://github.com/riparias/rato-occurrences/issues/151#issuecomment-1904180037