{"action":"opened","issue":{"url":"https://api.github.com/repos/sjPlot/sjmisc/issues/38","repository_url":"https://api.github.com/repos/sjPlot/sjmisc","labels_url":"https://api.github.com/repos/sjPlot/sjmisc/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/sjPlot/sjmisc/issues/38/comments","events_url":"https://api.github.com/repos/sjPlot/sjmisc/issues/38/events","html_url":"https://github.com/sjPlot/sjmisc/issues/38","id":195230182,"number":38,"title":"set_label does not overwrite variable label","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T11:38:15Z","updated_at":"2016-12-13T11:38:15Z","closed_at":null,"body":"Hi,\r\n\r\ntrying to use ``set_label`` in the example below does not override the ``variable label``:\r\n\r\n```\r\nd <- read_stata('GLES_Vorwahlquerschnitt_ZA5700_v1-0-0.dta')\r\nget_label(d$q119a)\r\n\r\n\"Parteiidentifikation (Version A)\"\r\n\r\n\r\ncdu <- rec(d$q119a, '1:3=1; else=0')\r\nstaerke <- rec(d$q120, '1=5; 2=4; 3=3; 4=2; 5=1; -97=0')\r\nd$cdu_pid <- cdu * staerke %>% set_labels(\r\n  c('keine PID' = 0, 'starke PID' = 5))  %>%  set_label('PID CDU/CSU')\r\nget_label(d$cdu_pid)\r\n\r\n\"Parteiidentifikation (Version A)\"\r\n```\r\n"}}
{"actor":{"display_login":"methodds"}}