EPM_date_parse | R Documentation |
Extract Date Information form a slice of a raw XML PubMed record. Day, month and year are returned. Months are recoded as numeric if needed (e.g., 'Oct' and 'October' are converted to 10). If month and/or day information are missing, these are imputed to 1. If the year is missing, NA is returned.
EPM_date_parse(x)
x |
String (character vector of length 1) including an XML date field from a PubMed record. |
list including n=3 numeric elements: day, month and year.
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/easypubmed/
dt0 <- '<Year>2021</Year><Month>03</Month><Day>12</Day>'
easyPubMed:::EPM_date_parse(dt0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.