{"action":"created","issue":{"url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/2","labels_url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/2/comments","events_url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/2/events","html_url":"https://github.com/ProjectMOSAIC/NHANES/issues/2","id":91483958,"number":2,"title":"PregnantNow should be \"No\" for males","user":{"login":"nicholasjhorton","id":530542,"avatar_url":"https://avatars.githubusercontent.com/u/530542?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasjhorton","html_url":"https://github.com/nicholasjhorton","followers_url":"https://api.github.com/users/nicholasjhorton/followers","following_url":"https://api.github.com/users/nicholasjhorton/following{/other_user}","gists_url":"https://api.github.com/users/nicholasjhorton/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasjhorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasjhorton/subscriptions","organizations_url":"https://api.github.com/users/nicholasjhorton/orgs","repos_url":"https://api.github.com/users/nicholasjhorton/repos","events_url":"https://api.github.com/users/nicholasjhorton/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasjhorton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-27T15:36:24Z","updated_at":"2015-06-28T09:02:56Z","closed_at":null,"body":"not missing:\r\n\r\n> tally(PregnantNow ~ Gender, data=NHANES)\r\n           Gender\r\nPregnantNow female male\r\n    Yes         72    0\r\n    No        1573    0\r\n    Unknown     51    0\r\n    <NA>      3324 4980\r\n"},"comment":{"url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/comments/116229886","html_url":"https://github.com/ProjectMOSAIC/NHANES/issues/2#issuecomment-116229886","issue_url":"https://api.github.com/repos/ProjectMOSAIC/NHANES/issues/2","id":116229886,"user":{"login":"rpruim","id":722231,"avatar_url":"https://avatars.githubusercontent.com/u/722231?v=3","gravatar_id":"","url":"https://api.github.com/users/rpruim","html_url":"https://github.com/rpruim","followers_url":"https://api.github.com/users/rpruim/followers","following_url":"https://api.github.com/users/rpruim/following{/other_user}","gists_url":"https://api.github.com/users/rpruim/gists{/gist_id}","starred_url":"https://api.github.com/users/rpruim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpruim/subscriptions","organizations_url":"https://api.github.com/users/rpruim/orgs","repos_url":"https://api.github.com/users/rpruim/repos","events_url":"https://api.github.com/users/rpruim/events{/privacy}","received_events_url":"https://api.github.com/users/rpruim/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T09:02:56Z","updated_at":"2015-06-28T09:02:56Z","body":"Earlier Nick said:\r\n\r\n>  I'd prefer to leave the Unknown's separate from the NA's. \r\n\r\nHave you changed your mind?\r\n\r\nNHANES records the value as missing for males.  On advantage of this is that you get a Yes/No/(Unknown) tally for females without first having to subset.  That's a small matter.  More generally, I think a good principle is to stick with the way NHANES does things (with sensible renaming of arbitrary numeric codes) unless there is a compelling reason to be different.  That way, the NHANES documentation will match our data.  So recoding the unknowns and assigning males to No would both need sufficient reason to violate that principle.\r\n\r\nI'm pretty sure that most (all?) categorical data in `mosaicData` is coded with factors.  What would be the advantage here of using character instead?\r\n\r\nIn `NHANES` we have \r\n\r\n```r\r\n> table(sapply(NHANES, class))\r\n\r\n factor integer numeric \r\n     31      34      11 \r\n```"}}