parse_embargo: Parse embargo period from API return

Description Usage Arguments Value

View source: R/utils.R

Description

This function provides an easy way to return the embargo period in the different categories

Usage

1
parse_embargo(xml_source, type = c("pre", "post", "pdf"))

Arguments

xml_source

[xml_document]
a parsed xml document

type

[character(1)] name of the embargo type must be in "pre", "post", and "pdf"

Value

the embargo period as a string like "12 months"


rromeo documentation built on March 13, 2020, 9:08 a.m.