powered by
Add a prefixed identifier to the first column of the dataset.
id_to_column(x, prefix = "eg:", ids = NULL)
A dataset conforming the original sub-class of x.
x
An R object that contains the data of the dataset (a data.frame or inherited from data.frame), for example, tibble::tibble(), tsibble::tsibble(), data.table::data.table().
data.frame
tibble::tibble()
tsibble::tsibble()
data.table::data.table()
Defaults to eg: (example.com).
eg:
Defaults to NULL.
NULL
# Example with a dataaset object: id_to_column(iris_dataset) # Example with a data.frame object: id_to_column(iris, prefix="eg:iris-o")
Run the code above in your browser using DataLab