Learn R Programming

dataset (version 0.3.1)

dataset_title: Get/set title of a dataset

Description

Get or reset the dataset's main title.

Usage

dataset_title(x)

dataset_title(x, overwrite = FALSE) <- value

Value

A string with the dataset's title; set_dataset_title returns a dataset object with the changed (main) title.

Arguments

x

A dataset object created with dataset() or as_dataset().

overwrite

If the attributes should be overwritten. In case it is set to FALSE,it gives a warning with the current title property instead of overwriting it. Defaults to FALSE.

value

The name(s) or title(s) by which a resource is known. See: dct:title.

Details

In the DataCite definition, several titles can be used; it is not yet implemented.

Examples

Run this code
dataset_title(iris_dataset)
dataset_title(iris_dataset, overwrite = TRUE) <-"The Famous Iris Dataset"
dataset_title(iris_dataset)

Run the code above in your browser using DataLab