Skip to content

Commit

Permalink
Added to do the same with tagging_project_name as recevier_project_na…
Browse files Browse the repository at this point in the history
…me (collectioncode if deriving, coll_code if not).
  • Loading branch information
jackVanish committed Feb 14, 2024
1 parent 03e0224 commit 22cb369
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/otn_imos_column_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ otn_imos_column_map <- function(det_dataframe, rcvr_dataframe = NULL, tag_datafr
embargo_date = NA,
transmitter_recovery_latitude = NA,
transmitter_recovery_longitude = NA,
tagging_project_name = NA,
tagging_project_name = coll_code,
) %>%
unite(
transmitter_id, c("TAG_CODE_SPACE", "TAG_ID_CODE"),
Expand Down Expand Up @@ -424,6 +424,7 @@ derive_tag_from_det <- function(det_dataframe) {
message(nrow(releases))
tag <- distinctTag %>%
select(
collectioncode,
tagname,
commonname,
scientificname,
Expand All @@ -438,11 +439,11 @@ derive_tag_from_det <- function(det_dataframe) {
transmitter_id = tagname,
species_common_name = commonname,
species_scientific_name = scientificname,
transmitter_deployment_id = catalognumber
transmitter_deployment_id = catalognumber,
tagging_project_name = collectioncode
) %>%
mutate(
transmitter_serial_number = NA,
tagging_project_name = NA,
transmitter_type = NA,
transmitter_sensor_type = NA,
transmitter_sensor_slope = NA,
Expand Down

0 comments on commit 22cb369

Please sign in to comment.