Learn R Programming

rsdv (version 0.2.0)

set_primary_key: Set the primary key column of the metadata

Description

Set the primary key column of the metadata

Usage

set_primary_key(meta, column)

Value

The updated rsdv_metadata object (for piping).

Arguments

meta

An rsdv_metadata object.

column

Name of the primary key column. Must already be registered via set_column_type().

Examples

Run this code
meta <- metadata() |>
  set_column_type("id", "id") |>
  set_primary_key("id")

Run the code above in your browser using DataLab