Skip to content

Commit

Permalink
Merge pull request #235 from riparias/234-sort-dwc-output-by-eventdate
Browse files Browse the repository at this point in the history
Sort by eventDate
  • Loading branch information
PietrH authored Nov 27, 2024
2 parents 3cf3e46 + 8d77a2b commit 7dc3324
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dwc_mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@ dwc_data %<>% transmute(
taxonRank = rank_clean
)
```
Sort by eventDate so the output is independent on the order of the raw data, which we can't control.

```{r}
dwc_data <-
dplyr::arrange(dwc_data, eventDate)
```

Reorder the columns so the most unique columns per record come first, and the ones most constant for the h<ole dataset come last. This makes it easier to see changes in the data when using a text editor and also makes it easier for git to correctly detect changes.

Expand Down

0 comments on commit 7dc3324

Please sign in to comment.