Skip to content

Commit

Permalink
Remove multiple type - value pairs in waarneming
Browse files Browse the repository at this point in the history
Patch for #23
  • Loading branch information
damianooldoni committed Jul 6, 2023
1 parent 7e4db8a commit 6c44e17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dwc_mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ input_data %<>% mutate(waarneming = recode(waarneming,
"Haard vastgesteld = 0; Waarneming onzeker = 1;" = "Waarneming onzeker = 1;"))
```

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

```{r}
input_data %<>%
filter(is.na(.data$waarneming) |
!str_detect(.data$waarneming, pattern = "; "))
```

Split into different columns: `waarneming_type` and `waarneming_kwantiteit`:

```{r}
Expand Down

0 comments on commit 6c44e17

Please sign in to comment.