View source: R/dataset_format.R
| dataset_format | R Documentation |
Adds or retrieves the optional "format" field of a dataset's bibentry.
This field is the dataset's technical/media type (e.g., a MIME type).
dataset_format(x)
dataset_format(x, overwrite = FALSE) <- value
x |
A semantically rich data frame created with |
overwrite |
Logical. Replace an existing non‑default value? If |
value |
A length‑one character string specifying the format
(e.g., |
The format field corresponds to
dct:format
in Dublin Core and to format in
DataCite.
It is useful for indicating serialization such as "text/csv",
"application/parquet", or "application/r-rds".
If no format is set, this helper uses the package default
"application/r-rds".
The "format" (technical format) as a character string (length 1).
When assigning, the updated object x is returned invisibly.
Other bibliographic helper functions:
contributor(),
creator(),
dataset_title(),
description(),
geolocation(),
get_bibentry(),
language,
publication_year(),
publisher(),
relation(),
rights(),
subject()
dataset_format(orange_df) <- "text/csv"
dataset_format(orange_df)
# Reset to the package default
dataset_format(orange_df) <- NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.