Skip to content

Commit

Permalink
Add missing pooled sample from HERG
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveViss committed May 14, 2024
1 parent 4030654 commit 4f13b30
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/itgr_samples_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ itgr_samples_info <- function(){
path <- "Z:/01-Projets et suivis/PASL/GoelandArgenté/Base de donnees HERG.xlsx"
file.copy(path, tmp_file, overwrite = TRUE)
HERG_field_lab_sample <- readxl::read_excel(tmp_file, "Sample Info") |>
tidyr::pivot_longer(`Pooled from`:"...19", values_to = "pool_sample", values_drop_na = TRUE) |>
dplyr::mutate(ClientID = ifelse(stringr::str_detect(tolower(ClientID), "pool"), pool_sample, ClientID)) |>
dplyr::select(
id_field_sample = ClientID,
id_site = Location,
Expand All @@ -61,11 +63,12 @@ itgr_samples_info <- function(){
collection_date = CollectionDate,
received_date = ReceivedDate,
id_source_report = ReportCode
) |> dplyr::distinct() |>
) |>
dplyr::distinct() |>
dplyr::mutate(id_species = "HERG") |>
dplyr::mutate(collection_date = as.Date(collection_date)) |>
dplyr::mutate(source = path)

#### Field sample: Gannets (NAGO)
path <- "Z:/01-Projets et suivis/PASL/FouBassan/Stats_NOGA_Temporal2022/Integration_ST LAWRENCE_Gannets Trends 1969-2019_OC-PCB-FR Metals D-F FAME CNS.xlsx"
file.copy(path, tmp_file, overwrite = TRUE)
Expand Down

0 comments on commit 4f13b30

Please sign in to comment.