Get the name of object in R when writing print method

This also seems related: Using column name as function argument within a S3 methods

2 Likes