#' @rdname db_getter_backend
#' @export
get_neonet <- function(db_url = get_db_url("neonet")) {
check_connection_to_url(db_url)
c14dates <- data.table::fread(
db_url,
na.strings = c("n/d", "n/a"),
colClasses = "character",
showProgress = FALSE
)
neonet <- c14dates %>%
dplyr::transmute(
labnr = .data[["LabCode"]],
c14age = .data[["C14Age"]],
c14std = .data[["C14SD"]],
site = .data[["SiteName"]],
feature = .data[["PhaseCode"]],
period = .data[["Period"]],
material = .data[["Material"]],
species = .data[["MaterialSpecies"]],
country = .data[["Country"]],
lat = .data[["Latitude"]],
lon = .data[["Longitude"]],
shortref = .data[["bib"]],
) %>% dplyr::mutate(
sourcedb = "neonet",
sourcedb_version = get_db_version("neonet")
) %>%
as.c14_date_list()
return(neonet)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.