Learn R Programming

dataset (version 0.1.9)

version: Get/set the version of the object.

Description

Get/set the optional Version property as an attribute to an R object.

Usage

version(x)

version(x, overwrite = FALSE) <- value

Value

The Version attribute as a character of length 1 is added to x.

Arguments

x

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

overwrite

If the Version attribute should be overwritten. In case it is set to FALSE, it gives a message with the currentVersion property instead of overwriting it. Defaults to TRUE when the attribute is set to value regardless of previous setting.

value

The Version as a character set.

Details

Version is an optional property in DataCite 4.3. It is not part of the "core" Dublin Core terms, but ... Dublin Core metadata terms.

See Also

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

Examples

Run this code
iris_dataset <- iris
version(iris_dataset) <- "1.0"
version(iris_dataset)

Run the code above in your browser using DataLab