A metadata object with DataCite mandatory, recommended and optional fields.

datacite(
  dataset_code,
  Identifier = NA_character_,
  Creator,
  Title,
  Publisher = NA_character_,
  PublicationYear = NA_real_,
  ResourceType = "Dataset",
  Subject,
  Contributor = NA_character_,
  Date = as.character(Sys.Date()),
  Language = "eng",
  AlternateIdentifier = NA_character_,
  RelatedIdentifier = NA_character_,
  Size = NA_character_,
  Format = NA_character_,
  Version = NA_character_,
  Rights = add_rights(),
  Description = NA_character_,
  GeoLocation = NA_character_,
  FundingReference = NA_character_,
  RelatedItem = NA_character_
)

datacite_dataset(
  dataset,
  dataset_code = NULL,
  description = NULL,
  keywords = NULL,
  Title = NULL,
  Subject = NULL,
  Creator,
  Contributor = NULL
)

is.datacite(x)

# S3 method for datacite
print(x, ...)

Arguments

dataset_code

A short, unique, programatically usable, memorizable dataset ID, given by an observatory curator.

Identifier

Identifiers created by add_identifiers

Creator

Creator field created by add_creators.

Title

The title of the dataset.

Publisher

The publisher of the dataset.

PublicationYear

The publication year given as a four-digit number.

ResourceType

The type of the resource, defaults to "Dataset".

Subject

The subject

Contributor

The Contributor field created by add_contributors.

Date

The Date filed created by add_dates.

Language

Defaults to 'eng'.

AlternateIdentifier

Defaults to NA_character_. It should have type subproperty.

RelatedIdentifier

Defaults to NA_character_. Related identifier should have type and relation type sub-properties.

Size

The size of the dataset, as measured in CSV format in bytes.

Format

The format(s) of the dataset.

Version

The version of the dataset.

Rights

The rights related to the datset, created by add_rights.

Description

The description of the dataset.

dataset

A dataset object. Its Size, Geolocation and Date properties will be added to the metadata object.

description

A basic description for the Abstract property of the description.

keywords

In the Other sub-field of the Description metadata property, we record keywords for structuring our observatory.

Geolocation

The geographical dimension of the observation in the dataset, created by add_geolocation.

n

The number of observations to print.

Value

A data frame of DataCite properties are variable columns.

Details

Use datacite_dataset to fill up a DataCite record with adding only those parameters that have no default values. In this case, a given dataset objects:

Dublin Core: A Cross-Domain Attribute Set

Mandatory Properties: DataCite Metadata Schema v4.4 Mandatory Properties

Recommended and Optional Properties: DataCite Metadata Schema v4.4 Recommended and Optional Properties

See also

datacite_properties

Examples

data("small_population") small_population_dataset <- dataset ( x= small_population, dataset_code = "small_population_total", dataset_title = "Population of Small European Countries", freq = "A", unit = "NR", unit_name = "number") datacite_dataset ( dataset = small_population_dataset, dataset_code = "small_population_total", Title = "Population on 1 January by age and sex", Subject = "Demography", Creator = add_creators("Jane", "Doe", "Reprex") )
#> DataCite information for Population on 1 January by age and sex #> # A tibble: 21 x 2 #> Property Value #> <chr> <chr> #> 1 dataset_code "small_population_total" #> 2 Identifier "small_population_total" #> 3 Creator "[{\"creatorName\":[\"Doe, Jane\"],\"nameType\":[\"Person\"]}~ #> 4 Title "Population on 1 January by age and sex" #> 5 Publisher "Reprex" #> 6 PublicationYe~ "2021" #> 7 ResourceType "Dataset" #> 8 Subject "Demography" #> 9 Contributor NA #> 10 Date "{\"Updated\":[\"2021-07-06\"],\"EarliestObservation\":[\"200~ #> # ... with 11 more rows
data("small_population") small_population_dataset <- dataset ( x = small_population, dataset_code = "small_population_total", dataset_title = "Population of Small European Countries", freq = "A", unit = "NR", unit_name = "number") #The final DataCite properties are Capitalized: small_population_datacite <- datacite_dataset( dataset = small_population_dataset, keywords = c("greendeal", "Demography", "Testing"), description = "Example dataset with three small countries", Subject = "Demography", Creator = "Joe, Doe" )