id_to_column: Add identifier to columns

View source: R/id_to_column.R

id_to_columnR 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 dataset_df.

prefix

Defaults to eg: (example.com).

ids

Defaults to NULL.

Value

A dataset conforming the original sub-class of x.

Examples


# Example with a dataset_df object:
id_to_column(iris_dataset)

# Example with a data.frame object:#'
id_to_column(iris, prefix="eg:iris-o")

dataset documentation built on April 3, 2025, 10:25 p.m.