{"action":"created","issue":{"url":"https://api.github.com/repos/sfirke/janitor/issues/17","repository_url":"https://api.github.com/repos/sfirke/janitor","labels_url":"https://api.github.com/repos/sfirke/janitor/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/sfirke/janitor/issues/17/comments","events_url":"https://api.github.com/repos/sfirke/janitor/issues/17/events","html_url":"https://github.com/sfirke/janitor/issues/17","id":155495318,"number":17,"title":"generalize top_2() by giving it a lvls parameter","user":{"login":"sfirke","id":7569808,"avatar_url":"https://avatars.githubusercontent.com/u/7569808?v=3","gravatar_id":"","url":"https://api.github.com/users/sfirke","html_url":"https://github.com/sfirke","followers_url":"https://api.github.com/users/sfirke/followers","following_url":"https://api.github.com/users/sfirke/following{/other_user}","gists_url":"https://api.github.com/users/sfirke/gists{/gist_id}","starred_url":"https://api.github.com/users/sfirke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfirke/subscriptions","organizations_url":"https://api.github.com/users/sfirke/orgs","repos_url":"https://api.github.com/users/sfirke/repos","events_url":"https://api.github.com/users/sfirke/events{/privacy}","received_events_url":"https://api.github.com/users/sfirke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T13:00:31Z","updated_at":"2016-05-18T13:01:46Z","closed_at":null,"body":"instead of `top_2(factor_var)` it should be `top_levels(factor_var, lvls = 2)`"},"comment":{"url":"https://api.github.com/repos/sfirke/janitor/issues/comments/220018739","html_url":"https://github.com/sfirke/janitor/issues/17#issuecomment-220018739","issue_url":"https://api.github.com/repos/sfirke/janitor/issues/17","id":220018739,"user":{"login":"sfirke","id":7569808,"avatar_url":"https://avatars.githubusercontent.com/u/7569808?v=3","gravatar_id":"","url":"https://api.github.com/users/sfirke","html_url":"https://github.com/sfirke","followers_url":"https://api.github.com/users/sfirke/followers","following_url":"https://api.github.com/users/sfirke/following{/other_user}","gists_url":"https://api.github.com/users/sfirke/gists{/gist_id}","starred_url":"https://api.github.com/users/sfirke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfirke/subscriptions","organizations_url":"https://api.github.com/users/sfirke/orgs","repos_url":"https://api.github.com/users/sfirke/repos","events_url":"https://api.github.com/users/sfirke/events{/privacy}","received_events_url":"https://api.github.com/users/sfirke/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T13:01:46Z","updated_at":"2016-05-18T13:01:46Z","body":"This will require more care in looking at whether `lvls` parameter is valid given # of levels in the factor.  Maybe with N levels, allow lvls to be N/2, rounded down."}}