id_to_column {dataset} | R Documentation |
Add identifier to columns
Description
Add a prefixed identifier to the first column of the dataset.
Usage
id_to_column(x, prefix = "eg:", ids = NULL)
Arguments
x |
A dataset created with |
prefix |
Defaults to |
ids |
Defaults to |
Value
A dataset conforming the original sub-class of x
.
Examples
# Example with a dataset_df object:
id_to_column(orange_df)
# Example with a data.frame object:
id_to_column(Orange, prefix = "orange:")
[Package dataset version 0.3.9 Index]