strengejacke / sjlabelled

Working with Labelled Data in R

Home Page:https://strengejacke.github.io/sjlabelled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion for using formats as an attribute

AndrewCSkibo opened this issue · comments

I am a 45+ year SAS user (yes -- I really am that old), and I love the idea that I can attach formats to variables one and for all, and then use these formats in printing without giving the issue much thought. I have functions to do that.

I would like to be able to use var_labels() and related functions to aid in assigning the functions. One option is to merely edit the function code, and replace the "label" with "format" in the appropriate place -- or whatever other attribute I want to set. But I would be much happier if I could simply change a parameter in the function call.

I suggest that var_labels() and related functions be modified to have the attribute passed as a parameter, with "label" as the default. If that can be pulled off existing users should not be impacted.