View source: R/resource_type.R
resource_type | R Documentation |
Get/set Type
property to the dataset.
resource_type(x)
resource_type(x) <- value
x |
An R dataset object inherited from data.frame, tibble, or data.table. |
value |
The |
The DataCite resourceType definition refers back to
dcm:type.
The Type$resourceTypeGeneral
is set to Dataset
, while the user can set a more
specific Type$resourceType
value. (See examples.)
Returns the x
object with the Type
attribute as a list.
The Type$resourceTypeGeneral is set to Dataset
.
x <- data.frame()
resource_type(x) <- "Dataset"
resource_type(x)
y <- data.frame()
resource_type(y) <- "Census Data"
resource_type(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.