{"action":"created","issue":{"url":"https://api.github.com/repos/sjPlot/devel/issues/46","labels_url":"https://api.github.com/repos/sjPlot/devel/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/sjPlot/devel/issues/46/comments","events_url":"https://api.github.com/repos/sjPlot/devel/issues/46/events","html_url":"https://github.com/sjPlot/devel/issues/46","id":87298441,"number":46,"title":"sjt.frq outputs items in wrong order","user":{"login":"jemus42","id":1613346,"avatar_url":"https://avatars.githubusercontent.com/u/1613346?v=3","gravatar_id":"","url":"https://api.github.com/users/jemus42","html_url":"https://github.com/jemus42","followers_url":"https://api.github.com/users/jemus42/followers","following_url":"https://api.github.com/users/jemus42/following{/other_user}","gists_url":"https://api.github.com/users/jemus42/gists{/gist_id}","starred_url":"https://api.github.com/users/jemus42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemus42/subscriptions","organizations_url":"https://api.github.com/users/jemus42/orgs","repos_url":"https://api.github.com/users/jemus42/repos","events_url":"https://api.github.com/users/jemus42/events{/privacy}","received_events_url":"https://api.github.com/users/jemus42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T10:38:34Z","updated_at":"2015-06-11T10:49:17Z","closed_at":"2015-06-11T10:49:17Z","body":"Example:\r\n\r\n    testdata <- structure(c(7L, 8L, 8L, 7L, 7L, 7L, 8L, 7L, 7L, 7L, 7L, 8L, 7L, \r\n                            7L, 7L, 7L, 7L, 9L, 7L, 8L, 8L, 8L, 7L, 7L, 7L, 7L, 7L, 8L, NA, \r\n                            8L, 8L, 4L, 8L, 7L, 8L, 7L, 8L, 7L, 8L, 7L, 7L, 7L, 7L, 8L, 6L, \r\n                            8L, 7L, 7L, 8L, 7L, 7L, 7L, 8L, 8L, 7L, NA, 7L, 7L, 7L, 7L, 7L, \r\n                            7L, 7L, 7L, 8L, 7L, 7L, 7L, 8L, 7L, 8L, 7L, 6L, 7L, 7L, 7L, 8L, \r\n                            8L, 7L, 8L, 8L, 4L, 8L, 7L, 8L, 8L, 8L, 8L, 7L, 7L, 7L, 8L, 8L, \r\n                            8L, 9L, 8L, 8L, 8L, 7L, 7L, 4L, 8L, 8L, 4L, 5L, 7L, 8L, 4L, 6L, \r\n                            7L, 6L, 4L, 4L, 6L, 4L, 7L, 7L, 7L, 8L, 8L, 4L, 4L, 4L, 4L, 4L, \r\n                            4L, 8L, 4L, 4L, 7L, 7L, 7L, 4L, 7L, 7L, NA, 4L, 8L, 4L, 4L, 8L, \r\n                            4L, 8L, 4L, 8L, 7L, 7L, 8L, 6L, 8L, 4L, 8L, 8L, 7L, 8L, 7L, 8L, \r\n                            8L, 8L, 8L, 4L, 8L, 6L, 6L, 4L, 7L, 8L, 7L, 8L, 7L, 7L, 4L, 8L, \r\n                            3L, 6L, 6L, 8L, 7L, 7L, 4L, 3L, 6L, 4L, 6L, 4L, 7L, NA, 8L, 4L, \r\n                            4L, 8L, 6L, 8L, 8L, 7L, 8L), .Label = c(\"Noch Schüler\", \"Schule beendet ohne Abschluss\", \r\n                                                                    \"Hauptschulabschluss/Volksschulabschluss\", \"Realschulabschluss (Mittlere Reife)\", \r\n                                                                    \"Abschluss Polytechnische Oberschule 10. Klasse (vor 1965: 8. Klasse)\", \r\n                                                                    \"Fachhochschulreife (Abschluss einer Fachoberschule)\", \"Abitur, allgemeine oder fachgebundene Hochschulreife (Gymnasium bzw. EOS)\", \r\n                                                                    \"Hochschulabschluss\", \"Anderer Schulabschluss:\"), class = \"factor\")\r\n\r\n    sjt.frq(testdata)\r\n\r\nprints: \r\n\r\n![](http://dump.jemu.name/pEWP2.png)\r\n\r\nyet \r\n\r\n    table(testdata)\r\n\r\nshows the above table is wrong:\r\n\r\n                                                             Noch Schüler \r\n                                                                        0 \r\n                                            Schule beendet ohne Abschluss \r\n                                                                        0 \r\n                                  Hauptschulabschluss/Volksschulabschluss \r\n                                                                        2 \r\n                                      Realschulabschluss (Mittlere Reife) \r\n                                                                       31 \r\n     Abschluss Polytechnische Oberschule 10. Klasse (vor 1965: 8. Klasse) \r\n                                                                        1 \r\n                      Fachhochschulreife (Abschluss einer Fachoberschule) \r\n                                                                       13 \r\n    Abitur, allgemeine oder fachgebundene Hochschulreife (Gymnasium bzw. EOS) \r\n                                                                       77 \r\n                                                       Hochschulabschluss \r\n                                                                       66 \r\n                                                  Anderer Schulabschluss: \r\n                                                                        2 \r\n\r\nAny hints what causes this?"},"comment":{"url":"https://api.github.com/repos/sjPlot/devel/issues/comments/111083411","html_url":"https://github.com/sjPlot/devel/issues/46#issuecomment-111083411","issue_url":"https://api.github.com/repos/sjPlot/devel/issues/46","id":111083411,"user":{"login":"jemus42","id":1613346,"avatar_url":"https://avatars.githubusercontent.com/u/1613346?v=3","gravatar_id":"","url":"https://api.github.com/users/jemus42","html_url":"https://github.com/jemus42","followers_url":"https://api.github.com/users/jemus42/followers","following_url":"https://api.github.com/users/jemus42/following{/other_user}","gists_url":"https://api.github.com/users/jemus42/gists{/gist_id}","starred_url":"https://api.github.com/users/jemus42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemus42/subscriptions","organizations_url":"https://api.github.com/users/jemus42/orgs","repos_url":"https://api.github.com/users/jemus42/repos","events_url":"https://api.github.com/users/jemus42/events{/privacy}","received_events_url":"https://api.github.com/users/jemus42/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T10:49:17Z","updated_at":"2015-06-11T10:49:17Z","body":"*sigh*\r\n\r\nNevermind, the issue is gone in the current development versions of `sjPlot` (with the current version of `sjmisc`)."}}