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(orange_df)

# Example with a data.frame object:
id_to_column(Orange, prefix = "orange:")

dataset documentation built on June 8, 2025, 10:15 a.m.