-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Date_Types in 12 packages #97
Comments
I'm slowly crawling out of my hole and thought I quickly take a peek into this. Dana and I concluded back then for #25 that there is unfortunately a lot of
I checked anyway: janno <- poseidonR::read_janno("~/agora/published_data/")
### If there are entries in the C14-type columns, put Date_Type to C14.
janno_with_actual_C14_dates <- janno %>% dplyr::filter(
# do not include dates for which applies
!purrr::map_lgl(Date_C14_Uncal_BP, \(x) {
is.null(x) || # date is NULL
if (length(x) == 1) { # if there is exactly one date value
is.na(x) # date is NA
} else {
FALSE
}
})
)
janno_with_actual_C14_dates %>% nrow # 3606
janno %>% dplyr::filter(Date_Type == "C14") %>% nrow # 3607
janno_with_actual_C14_dates %>%
dplyr::filter(is.na(Date_Type) | Date_Type != "C14") %>% nrow() # 0 So I think such a sample does indeed not exist. ### If there are entries in the calibrated columns, but not in the C14-columns, put Date_Type to contextual.
janno_with_result_dates <- janno %>% dplyr::filter(
!is.na(janno$Date_BC_AD_Median)
)
janno_potentially_contextual <- dplyr::anti_join(
janno_with_result_dates,
janno_with_actual_C14_dates,
by = "Poseidon_ID"
)
janno_potentially_contextual %>%
dplyr::filter(is.na(Date_Type) | Date_Type != "contextual") %>%
nrow # 840 OK! So we could automatically fill these 840 (826 from 2021_PattersonNature) with Btw. my brain is still pretty mushy so take this with a grain of salt. |
OK, good catch that 826 of the missing date infos with calibrated dates are from Patterson. I think we should then open a separate issue to fill in the uncalibrated dates for these, as I think they must have C14-dated most if not all of their samples. |
Lots of packages contain missing
Date_Type
s in the Janno file. In my, a lot of those we should be able to fill easily:a. If there are entries in the C14-type columns, put
Date_Type
toC14
.b. If there are entries in the calbrated columns, but not in the C14-columns, put
Date_Type
tocontextual
.c. If it's modern samples, put to
modern
.d. If the sample is ancient, but there is no date at all, keep at
n/a
for now, but of course those we should anyway also fill soon, at least as a contextual range, which should always be possible from a look into the paper.The text was updated successfully, but these errors were encountered: