| id_to_column | R Documentation |
Adds a prefixed identifier (e.g., eg:) to the first column of a dataset,
useful for generating semantic row IDs (e.g., for RDF serialization).
id_to_column(x, prefix = "eg:", ids = NULL)
x |
A dataset created with |
prefix |
A character string used as the prefix for row identifiers.
Defaults to |
ids |
Optional. A character vector of custom IDs to use instead of row names. |
A dataset of the same class as x, with the first column updated to include
unique prefixed identifiers.
# Example with a dataset_df object:
id_to_column(orange_df)
# Example with a regular data.frame:
id_to_column(Orange, prefix = "orange:")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.