Skip to contents

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

Usage

rights(x)

rights(x, overwrite = FALSE) <- value

Arguments

x

A dataset object created with dataset::dataset.

overwrite

If the Rights attribute should be overwritten. In case it is set to FALSE, it gives a message with the current Rights property instead of overwriting it. Defaults to FALSE.

value

The Rights as a character set.

Value

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

Details

Rights corresponds to dct:rights and datacite Rights. Information about rights held in and over the resource. Typically, rights information includes a statement about various property rights associated with the resource, including intellectual property rights.

See also

Other Reference metadata functions: language, publication_year(), publisher()

Examples

rights(iris_dataset) <- "CC-BY-SA"
rights(iris_dataset)
#> [1] ":unas"