Skip to contents

Creates the id for a sumario by the date it was published.

Usage

sumario_nbo(date, journal = "BOE")

sumario_xml(date, journal = "BOE")

Arguments

date

Date of the sumario

journal

Either BOE or BORME.

Value

A character vector

Functions

  • sumario_xml(): For compatibility with previous version

See also

The id is different from the CVE, which can be created with sumario_cve().

Other code generators: element, sumario_cve()

Examples

sumario_nbo(Sys.Date())
#> [1] "BOE-S-20220804"
sumario_nbo(format(as.Date("2009/01/01", "%Y/%m/%d"), "%Y%m%d"), journal = "BORME")
#> [1] "BORME-S-20090101"