{"action":"closed","issue":{"url":"https://api.github.com/repos/sjPlot/devel/issues/172","repository_url":"https://api.github.com/repos/sjPlot/devel","labels_url":"https://api.github.com/repos/sjPlot/devel/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/sjPlot/devel/issues/172/comments","events_url":"https://api.github.com/repos/sjPlot/devel/issues/172/events","html_url":"https://github.com/sjPlot/devel/issues/172","id":194828426,"number":172,"title":"Suggestion:  intr.var for sjt.grpmean()","user":{"login":"methodds","id":7460499,"avatar_url":"https://avatars.githubusercontent.com/u/7460499?v=3","gravatar_id":"","url":"https://api.github.com/users/methodds","html_url":"https://github.com/methodds","followers_url":"https://api.github.com/users/methodds/followers","following_url":"https://api.github.com/users/methodds/following{/other_user}","gists_url":"https://api.github.com/users/methodds/gists{/gist_id}","starred_url":"https://api.github.com/users/methodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/methodds/subscriptions","organizations_url":"https://api.github.com/users/methodds/orgs","repos_url":"https://api.github.com/users/methodds/repos","events_url":"https://api.github.com/users/methodds/events{/privacy}","received_events_url":"https://api.github.com/users/methodds/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-11T12:06:16Z","updated_at":"2016-12-19T11:56:04Z","closed_at":"2016-12-19T11:56:04Z","body":"Hi, \r\n\r\nit would be nice to have an option for grouping by a third variable in ``sjt.grpmean()`` similar to ``intr.var`` in ``sjp.grpfrq()``.\r\n\r\nAt the moment I'm trying to work around this by using ``filter`` from dplr, which does however raise an error:\r\n\r\n```\r\ndata(efc)\r\nefc %>% filter(e16sex==1) %>%  sjt.grpmean(c12hour, e42dep)\r\nefc %>% filter(e16sex==2) %>%  sjt.grpmean(c12hour, e42dep)\r\n\r\n\r\nError in sjmisc::get_labels(var.grp, attr.only = F, include.values = NULL, : object 'c12hour' not found\r\n```\r\nI guess the function is not yet compatible with pipes? Would it have to accept a dataframe as first input?"}}
{"actor":{"display_login":"sjPlot"}}