Returns the lineage_id vector from an lg_df object. Use this instead
of accessing the column directly to keep code robust against future
internal changes.
Arguments
- data
An
lg_dffromlg_tag().
Examples
lg_start()
#> lineager: session started
dm <- data.frame(USUBJID = c("01-001", "01-002"), AGE = c(34L, 52L))
dm_tagged <- lg_tag(dm, dataset_id = "DM")
#> lineager: tagged 'DM' — 2 rows, 2 cols
lg_id(dm_tagged)
#> [1] "DM_0001_01-001" "DM_0002_01-002"
