Skip to content

Commit

Permalink
Downconvert taxonID to NA
Browse files Browse the repository at this point in the history
Co-Authored-By: Peter Desmet <[email protected]>
  • Loading branch information
PietrH and peterdesmet committed Nov 3, 2023
1 parent d75885a commit bbcb3fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@ convert_observations_to_0.1.6 <- function(package, from = "1.0") {
}
# remove bounding box related cols if present
observations <- observations %>% dplyr::select(-dplyr::starts_with("bbox"))
# add taxonID if missing
if(!"taxonID" %in% colnames(observations)){
observations <- observations %>% dplyr::mutate(taxonID = NA_integer_)
}

package$data$observations <- observations
return(package)
Expand Down

0 comments on commit bbcb3fd

Please sign in to comment.