rromeo (version 0.1.1)

parse_embargo: Parse embargo period from API return

Description

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

Usage

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"