insightsengineering / cards

CDISC Analysis Results Data
https://insightsengineering.github.io/cards/
24 stars 0 forks source link

`ard_attributes()` as S3 generic? #211

Closed ddsjoberg closed 2 months ago

ddsjoberg commented 3 months ago

I wonder if ard_attributes() should be updated to be an S3 generic, with methods for data frames (that is what we have now in {cards}), survey design objects, and survfit objects. This will allow us to get the variable labels for the stratifying variables (when we can access them).

ddsjoberg commented 3 months ago

We'll need to take the following steps

These 3 functions/methods will be documented in a single Rd file. I prefer to do this using @name and @rdname roxygen tags. If you haven't used them before, ping me and I can send an example.