{"action":"opened","issue":{"url":"https://api.github.com/repos/quanteda/quanteda.tidy/issues/1","repository_url":"https://api.github.com/repos/quanteda/quanteda.tidy","labels_url":"https://api.github.com/repos/quanteda/quanteda.tidy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/quanteda/quanteda.tidy/issues/1/comments","events_url":"https://api.github.com/repos/quanteda/quanteda.tidy/issues/1/events","html_url":"https://github.com/quanteda/quanteda.tidy/issues/1","id":298105449,"number":1,"title":"Wishlist: Better dplyr function support","user":{"login":"kbenoit","id":2182246,"avatar_url":"https://avatars2.githubusercontent.com/u/2182246?v=4","gravatar_id":"","url":"https://api.github.com/users/kbenoit","html_url":"https://github.com/kbenoit","followers_url":"https://api.github.com/users/kbenoit/followers","following_url":"https://api.github.com/users/kbenoit/following{/other_user}","gists_url":"https://api.github.com/users/kbenoit/gists{/gist_id}","starred_url":"https://api.github.com/users/kbenoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbenoit/subscriptions","organizations_url":"https://api.github.com/users/kbenoit/orgs","repos_url":"https://api.github.com/users/kbenoit/repos","events_url":"https://api.github.com/users/kbenoit/events{/privacy}","received_events_url":"https://api.github.com/users/kbenoit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-18T18:17:58Z","updated_at":"2018-02-18T18:17:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_From @methodds on January 29, 2017 13:32_\n\nHi,\r\n\r\nits so awesome how much user friendlier quanteda became in the last year and I could imagine this to improve even more by adding better dplyr support to quanteda. Of course, corpora are not data frames, but often have docvars and imagine a world where you could do something like this:\r\n\r\n```\r\nlibrary(quanteda)\r\ncorpus <- data_corpus_inaugural\r\n\r\ndfm_grouped <- corpus %>% \r\n mutate(war = ifelse(Year<1945, \"pre-war\", \"post-war\")) %>%\r\n group_by(war) %>% dfm(remove=stopwords('english'))\r\n```\r\nThis could work if a corpus (or other quanteda objects) would recognize a dplyr call and pass ``docvars()`` accordingly etc. What do you think about this?\n\n_Copied from original issue: quanteda/quanteda#529_"}}
{"actor":{"display_login":"kbenoit"}}