language: Get/Set the primary language of the dataset

languageR Documentation

Get/Set the primary language of the dataset

Description

Add the optional Language property as an attribute to an R object.

Usage

language(x)

language(x, iso_639_code = "639-3") <- value

Arguments

x

An R object, such as a data.frame, a tibble, or a character vector.

iso_639_code

Defaults to ISO 639-3, alternative is ISO 639-1.

value

The language to be added to the object attributes, added by name, or as a 2- or 3-character code for the language. You can add a language code or language name, and the parameter is normalized to tolower(language). (The ISO 639 standard capitalizes language names and uses lower case for the codes.)

Details

Language is an optional property in DataCite 4.3 and it is part of the "core" of the Dublin Core metadata terms. The language parameter is validated against the [ISOcodes]{ISO_639_2} table.
The attribute language is added to the object. It will be exported into DataCite applications in a capitalized Lanugage format.

Value

The Language is added to the x as ISO 639-1, the Datacite recommendation, or ISO 639-3 used by the Zenodo data repository.

See Also

Other Reference metadata functions: creator(), dataset_source(), description(), geolocation(), identifier(), publication_year(), publisher(), rights(), size(), version()

Examples

iris_dataset <- iris
language(iris_dataset) <- "English"
language(iris_dataset)

dataset documentation built on March 31, 2023, 10:24 p.m.