jbryer/likert — pull request #7 by houshuang (2013-08-26 17:31:34+00:00)
Title: Enable storing full variable names in attributes, and automatic use by likert function

I'm not at all expecting this to be merged by you in the current state, I'm a total R dabbler, and am sure this could be one much more effectively. But as I mentioned in my previous issue, I am very interested in making the processing of survey data, and subsequent report writing much cleaner - separating the creation of groups, and storing the full names of variables in meta data.

In this example (see functional example in demo), I create a function to store the full names of data.frame columns in the attribute fullname. I can also create a group of likert columns, and store these attached to the top-level data frame. I'll store the processed data frame as an R object, which preserves the meta data.

Later, when I am writing my report, I can easily select the group of likert columns from the top-level attribute, and graph them with nice column names, without having to rename them manually in the middle of the report. (It works fine with columns that have no full name attribute as well).

I would appreciate knowing if there is any interest in this, then we can discuss how to implement it in a more elegant fashion.