#' @rdname db_getter_backend
#' @export
get_rado.nb <- function(db_url = get_db_url("rado.nb")) {
check_connection_to_url(db_url)
# read data
rado.nb <- db_url %>%
data.table::fread(
quote = "",
colClasses = "character",
showProgress = FALSE
) %>%
base::replace(., . == "", NA) %>%
base::replace(., . == "n/a", NA) %>%
base::replace(., . == "n.a.", NA) %>%
dplyr::transmute(
labnr = .data[["LABNR"]],
c14age = .data[["C14AGE"]],
c14std = .data[["C14STD"]],
c13val = .data[["C13"]],
material = .data[["MATERIAL"]],
species = .data[["SPECIES"]],
country = .data[["COUNTRY"]],
site = .data[["SITE"]],
period = .data[["PERIOD"]],
culture = .data[["CULTURE"]],
sitetype = .data[["FEATURETYPE"]],
feature = .data[["FEATURE"]],
lat = .data[["LATITUDE"]],
lon = .data[["LONGITUDE"]],
shortref = .data[["REFERENCE"]]
) %>%
dplyr::mutate(
sourcedb = "rado.nb",
sourcedb_version = get_db_version("rado.nb")
) %>%
as.c14_date_list()
return(rado.nb)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.