#Rstats I'm trying to make a class that is essentially a data.frame with metadata. What is the recommended 'object style' for this?
4
2
Replying to @kaioinformatics
"It depends." You can start with alightweight S3 class that inherits from data.frame, but has a print method also recognising your metadata. This is a actually a pretty neat use case to develop. Document what you do step by step. You'll have a tutorial in no time. #rstats

Dec 20, 2021 · 12:31 AM UTC

1
1
4
But keep in mind you need custom extraction methods because the base methods drop attributes.