{"action":"created","issue":{"url":"https://api.github.com/repos/tilltnet/egor/issues/21","repository_url":"https://api.github.com/repos/tilltnet/egor","labels_url":"https://api.github.com/repos/tilltnet/egor/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/tilltnet/egor/issues/21/comments","events_url":"https://api.github.com/repos/tilltnet/egor/issues/21/events","html_url":"https://github.com/tilltnet/egor/issues/21","id":332223005,"node_id":"MDU6SXNzdWUzMzIyMjMwMDU=","number":21,"title":"Split composition() into several new functions","user":{"login":"tilltnet","id":8319636,"node_id":"MDQ6VXNlcjgzMTk2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/8319636?v=4","gravatar_id":"","url":"https://api.github.com/users/tilltnet","html_url":"https://github.com/tilltnet","followers_url":"https://api.github.com/users/tilltnet/followers","following_url":"https://api.github.com/users/tilltnet/following{/other_user}","gists_url":"https://api.github.com/users/tilltnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tilltnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilltnet/subscriptions","organizations_url":"https://api.github.com/users/tilltnet/orgs","repos_url":"https://api.github.com/users/tilltnet/repos","events_url":"https://api.github.com/users/tilltnet/events{/privacy}","received_events_url":"https://api.github.com/users/tilltnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tilltnet","id":8319636,"node_id":"MDQ6VXNlcjgzMTk2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/8319636?v=4","gravatar_id":"","url":"https://api.github.com/users/tilltnet","html_url":"https://github.com/tilltnet","followers_url":"https://api.github.com/users/tilltnet/followers","following_url":"https://api.github.com/users/tilltnet/following{/other_user}","gists_url":"https://api.github.com/users/tilltnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tilltnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilltnet/subscriptions","organizations_url":"https://api.github.com/users/tilltnet/orgs","repos_url":"https://api.github.com/users/tilltnet/repos","events_url":"https://api.github.com/users/tilltnet/events{/privacy}","received_events_url":"https://api.github.com/users/tilltnet/received_events","type":"User","site_admin":false},"assignees":[{"login":"tilltnet","id":8319636,"node_id":"MDQ6VXNlcjgzMTk2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/8319636?v=4","gravatar_id":"","url":"https://api.github.com/users/tilltnet","html_url":"https://github.com/tilltnet","followers_url":"https://api.github.com/users/tilltnet/followers","following_url":"https://api.github.com/users/tilltnet/following{/other_user}","gists_url":"https://api.github.com/users/tilltnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tilltnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilltnet/subscriptions","organizations_url":"https://api.github.com/users/tilltnet/orgs","repos_url":"https://api.github.com/users/tilltnet/repos","events_url":"https://api.github.com/users/tilltnet/events{/privacy}","received_events_url":"https://api.github.com/users/tilltnet/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tilltnet/egor/milestones/1","html_url":"https://github.com/tilltnet/egor/milestone/1","labels_url":"https://api.github.com/repos/tilltnet/egor/milestones/1/labels","id":3413159,"node_id":"MDk6TWlsZXN0b25lMzQxMzE1OQ==","number":1,"title":"Sunbelt 2018","description":"To submit to CRAN in time to be installable during the 2018 Sunbelt workshops.","creator":{"login":"krivit","id":15682462,"node_id":"MDQ6VXNlcjE1NjgyNDYy","avatar_url":"https://avatars1.githubusercontent.com/u/15682462?v=4","gravatar_id":"","url":"https://api.github.com/users/krivit","html_url":"https://github.com/krivit","followers_url":"https://api.github.com/users/krivit/followers","following_url":"https://api.github.com/users/krivit/following{/other_user}","gists_url":"https://api.github.com/users/krivit/gists{/gist_id}","starred_url":"https://api.github.com/users/krivit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krivit/subscriptions","organizations_url":"https://api.github.com/users/krivit/orgs","repos_url":"https://api.github.com/users/krivit/repos","events_url":"https://api.github.com/users/krivit/events{/privacy}","received_events_url":"https://api.github.com/users/krivit/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2018-06-10T03:48:17Z","updated_at":"2018-06-14T19:20:27Z","due_on":"2018-06-18T07:00:00Z","closed_at":null},"comments":4,"created_at":"2018-06-14T01:50:11Z","updated_at":"2018-06-15T15:11:31Z","closed_at":null,"author_association":"OWNER","body":"composition() currently poduces three kinds of output:\r\n\r\n- absolute/proportional composition\r\n- diversity\r\n- EI-Index as a homophily measurement\r\n\r\nalso the code of composition is bloated and depends on egoID (see #20).\r\n\r\nNew functions to create should be:\r\n- egor_diversity() (egor prefix in order not to mask diversity from igraph)\r\n- homophily_ei()\r\n\r\nWith dplyr/purrr the composition can be calculated in a few lines. I will include examples in the workshop and in the vignette. Alternatively I could add comp() and prop_comp() functions.  "},"comment":{"url":"https://api.github.com/repos/tilltnet/egor/issues/comments/397652684","html_url":"https://github.com/tilltnet/egor/issues/21#issuecomment-397652684","issue_url":"https://api.github.com/repos/tilltnet/egor/issues/21","id":397652684,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzY1MjY4NA==","user":{"login":"tilltnet","id":8319636,"node_id":"MDQ6VXNlcjgzMTk2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/8319636?v=4","gravatar_id":"","url":"https://api.github.com/users/tilltnet","html_url":"https://github.com/tilltnet","followers_url":"https://api.github.com/users/tilltnet/followers","following_url":"https://api.github.com/users/tilltnet/following{/other_user}","gists_url":"https://api.github.com/users/tilltnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tilltnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilltnet/subscriptions","organizations_url":"https://api.github.com/users/tilltnet/orgs","repos_url":"https://api.github.com/users/tilltnet/repos","events_url":"https://api.github.com/users/tilltnet/events{/privacy}","received_events_url":"https://api.github.com/users/tilltnet/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T15:11:31Z","updated_at":"2018-06-15T15:11:31Z","author_association":"OWNER","body":"With 370a507 there is now a **comp_ply()** command that does what @mbojan proposed above. It can also handle an ego attribute:\r\n\r\n    comp_ply(object, alt.attr, .f, ..., ego.attr = NULL)\r\n\r\nBuild on that there are the following functions for compositional analysis:\r\n- `composition(object, alt.attr, absolute = FALSE)`\r\n- `alts_diversity_count(object, alt.attr)`\r\n- `alts_diversity_entropy(object, alt.attr, base)` \r\n- `homophily_ei(object, alt.attr, ego.attr)`"}}
{"actor":{"display_login":"tilltnet"}}