Extract and combine the contacts for matched projects
Source:R/project_contacts.R
project_contacts.Rd
Extract and combine the contacts for matched projects
Usage
project_contacts(extract, type = c("receiver", "tag"))
Value
a data.table containing project names, principal investigators (PI), points of contact (POC), and their respective emails. Multiple emails are separated by commas.
Examples
if (FALSE) { # \dontrun{
# Set up example data
td <- file.path(tempdir(), "otndo_example")
dir.create(td)
download.file(
paste0(
"https://members.oceantrack.org/data/repository/",
"pbsm/detection-extracts/pbsm_matched_detections_2018.zip/",
"@download/file"
),
destfile = file.path(td, "pbsm_matched_detections_2018.zip"),
mode = "wb"
)
unzip(file.path(td, "pbsm_matched_detections_2018.zip"),
exdir = td
)
matched <- read.csv(file.path(
td,
"pbsm_matched_detections_2018.csv"
))
# Actually run the function
project_contacts(matched, type = "tag")
# Clean up
unlink(td, recursive = TRUE)
} # }