Get short with unit

ys_get_short_unit(x, ...)

Arguments

x

ycol or yspec object

...

arguments passed to [ys_get_short] and [ys_get_unit]

See also

[ys_get_short], [ys_get_unit], [ys_get_label]

Examples

spec <- ys_help$spec() ys_get_short_unit(spec)
#> C NUM #> "comment character" "record number" #> ID SUBJ #> "subject identifier" "subject identifier" #> TIME SEQ #> "TIME hour" "SEQ" #> CMT EVID #> "compartment number" "event ID" #> AMT DV #> "dose amount mg" "dependent variable <<mugL>>" #> AGE WT #> "age years" "weight kg" #> CRCL ALB #> "CRCL ml/min" "albumin g/dL" #> BMI AAG #> "BMI m2/kg" "alpha-1-acid glycoprotein mg/dL" #> SCR AST #> "serum creatinine mg/dL" "aspartate aminotransferase" #> ALT HT #> "alanine aminotransferase" "height cm" #> CP TAFD #> "Child-Pugh score" "time after first dose hours" #> TAD LDOS #> "time after dose hours" "last dose amount mg" #> MDV BLQ #> "MDV" "below limit of quantification" #> PHASE STUDY #> "study phase indicator" "study number" #> RF #> "renal function stage"
ys_get_short_unit(spec$WT)
#> [1] "weight kg"