gdemin / expss

expss: Tables and Labels in R
https://cran.r-project.org/web/packages/expss/
84 stars 16 forks source link

tab_cells: category labels in columns #81

Open dhub100 opened 3 years ago

dhub100 commented 3 years ago

SPSS CTABLES provides a subcommand (/CLABELS ROWLABELS=OPPOSITE) that allows easily moving value labels to columns. It facilitates the production of a table with several variables (with identical value labels) that can be compared row by row. Is there a similar function in expss/tables or is it feasible to add such a feature? I think especially in market research such a function would facilitate the work with EXPSS very much.

gdemin commented 3 years ago

This feature is in my roadmap. Currently there is a wordy solution: https://cran.r-project.org/web/packages/expss/vignettes/examples.html#side-by-side-variables-comparison

dhub100 commented 3 years ago

Thank you very much for your reply! Good to hear, that this feature is in the planning. Regarding the wordy solution you mentioned: I'm actually looking for a table with several variables in the rows and the tab_cells categories in the columns. Transposing the table get's closer, but is not yet the perfect solution.

gdemin commented 3 years ago

@dhub100 Could you provide an example of the expected table? When I read your question I think about several Likert scales with labels "Agree"/"Disagree"/etc in rows and variable labels in columns.

dhub100 commented 3 years ago

I'm looking for a table with as many rows as variables: one with the first variable, one with the second variable and so on, and with the statistics of the categories (e.g. row percentages) in the columns.

Here an example with 4 variables (rows 3-6) and 3 category columns (B-D): Example

dhub100 commented 3 years ago

Hi gdemin Is a new release of expss planned in the near future? Best, Daniel

gdemin commented 3 years ago

Hi, @dhub100 Yes, I plan the new release before Christmas. Ideally, before December. I am sorry, but the feature above won't be included in this release. 'expss' internals are unnecessarily complicated and there are a lot of useless parts. So in the next couple releases I want to simplify the code. It will make possible faster development of the new features and bug fixing. Currently it is very difficult to add new features in a simple and consistent manner.

dhub100 commented 3 years ago

Hi Gregory Thank you for the update! It certainly makes sense first to simplify the basics to make further development easier. I'm looking forward to any improvements! Best, Daniel

Am Mo., 18. Okt. 2021 um 19:24 Uhr schrieb Gregory Demin < @.***>:

Hi, @dhub100 https://github.com/dhub100 Yes, I plan the new release before Christmas. Ideally, before December. I am sorry, but the feature above won't be included in this release. 'expss' internals are unnecessarily complicated and there are a lot of useless parts. So in the next couple releases I want to simplify the code. It will make possible faster development of the new features and bug fixing. Currently it is very difficult to add new features in a simple and consistent manner.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gdemin/expss/issues/81#issuecomment-945996111, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHNRS5INJ27XYIJ36LIDXDUHRJ4LANCNFSM4ZASLPHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.