rights: Get/set the Rights of the object.

View source: R/rights.R

rightsR Documentation

Get/set the Rights of the object.

Description

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

Usage

rights(x)

rights(x, overwrite = TRUE) <- value

Arguments

x

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

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 TRUE when the attribute is set to value regardless of previous setting.

value

The Rights as a character set.

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.

Value

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

See Also

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

Examples

iris_dataset <- iris
rights(iris_dataset) <- "CC-BY-SA"
rights(iris_dataset)

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