View source: R/simplify_utilities.R
fix_dating | R Documentation |
Reformats the "dating"-list of any resource from an idaifield_docs
-
or idaifield_resources
-list to contain min and max dating and
additional info as well as the original values in the "comment"-element.
fix_dating(dat_list, use_exact_dates = FALSE)
dat_list |
A "dating"-list of any resource from an |
use_exact_dates |
TRUE/FALSE: If TRUE and "exact" dating type is present, sets the min and max dating to the value of the exact dating. Default is FALSE. |
A reformatted list containing min and max dating and additional
information as well as all original values in the "comment"-element. If
use_exact_dates = TRUE
contains the value of the exact dating in both
dating.min and dating.max.
This function is used by: simplify_idaifield()
## Not run:
dat_list <- list(list(type = "range",
begin = list(inputYear = 2000, inputType = "bce"),
end = list(inputYear = 2000, inputType = "ce")),
list(type = "exact",
begin = list(inputYear = 130, inputType = "bce"),
end = list(inputYear = 130, inputType = "bce")))
# Use the true min/max dating:
fix_dating(dat_list)
# use the available exact dating:
fix_dating(dat_list, use_exact_dates = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.