Skip to content

Commit

Permalink
Merge pull request #153 from riparias/152-waarneming-now-has-trailing…
Browse files Browse the repository at this point in the history
…-whitespace-by-default-tripping-multiple-value-detection

remove trailing whitespace so we can use a space to detect multiple v…
  • Loading branch information
PietrH authored Jan 22, 2024
2 parents b23e37c + 8c5c48e commit da031c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dwc_mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ First, we need to clean `Haard vastgesteld = 0; Waarneming onzeker = 1;`. This s
input_data %<>% mutate(waarneming = recode(waarneming,
"Haard vastgesteld = 0; Waarneming onzeker = 1;" = "Waarneming onzeker = 1;"))
```
Remove trailing whitespace from waarneming, so we can use `; ` as a way to detect multiple values for this field

```{r remove trailing whitespace from waarneming}
input_data <-
input_data %>%
mutate(waarneming = stringr::str_trim(waarneming))
```

Remove occurrences containing multiple type - value pairs information in column `waarneming` (patch until [#23](https://github.com/riparias/rato-occurrences/issues/23) is solved):

Expand Down

0 comments on commit da031c7

Please sign in to comment.