metrumresearchgroup / yspec

Data Specification for Pharmacometrics
https://metrumresearchgroup.github.io/yspec
5 stars 2 forks source link

ys_col_note #120

Closed kylebaron closed 2 years ago

kylebaron commented 2 years ago

Summary

@KatherineKayMRG I simplified this quite a bit based on initial prototyping. I felt like it wasn't that obvious what columns were going to come back in the note and that it was reasonable to just ask to name the columns to appear. This would (I think) also allow user to enforce an order which might be nice.

Example

library(yspec)
spec <- ys_help$spec()

ys_col_note(spec, ALT, AST, SCR, AMT, AAG, BLQ,  .to_string = TRUE)
#> [1] "ALT: alanine aminotransferase; AST: aspartate aminotransferase; SCR: serum creatinine; AMT: dose amount; AAG: alpha-1-acid glycoprotein; BLQ: below limit of quantification"

Created on 2022-03-17 by the reprex package (v2.0.1)

kylebaron commented 2 years ago

@KatherineKayMRG Thanks for reviewing; I believe everything is up to date based on your review.

kylebaron commented 2 years ago

Awesome!