{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/plyr/issues/260","labels_url":"https://api.github.com/repos/hadley/plyr/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/hadley/plyr/issues/260/comments","events_url":"https://api.github.com/repos/hadley/plyr/issues/260/events","html_url":"https://github.com/hadley/plyr/issues/260","id":97095289,"number":260,"title":"NA values when summarising using a column name that also exists in the data I'm summarizing","user":{"login":"bnicenboim","id":5982330,"avatar_url":"https://avatars.githubusercontent.com/u/5982330?v=3","gravatar_id":"","url":"https://api.github.com/users/bnicenboim","html_url":"https://github.com/bnicenboim","followers_url":"https://api.github.com/users/bnicenboim/followers","following_url":"https://api.github.com/users/bnicenboim/following{/other_user}","gists_url":"https://api.github.com/users/bnicenboim/gists{/gist_id}","starred_url":"https://api.github.com/users/bnicenboim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnicenboim/subscriptions","organizations_url":"https://api.github.com/users/bnicenboim/orgs","repos_url":"https://api.github.com/users/bnicenboim/repos","events_url":"https://api.github.com/users/bnicenboim/events{/privacy}","received_events_url":"https://api.github.com/users/bnicenboim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-24T17:15:32Z","updated_at":"2015-07-24T17:15:32Z","closed_at":null,"body":"Hi,  [this](https://github.com/hadley/plyr/issues/181) seem to be an actual bug:\r\nI also got NA values when I use summarise and the first summarized column name is als a column name in the data.\r\n```R\r\nlatencies<- data.frame(retrieval_at= rep(c(\"X\",\"Y\"),20), rep(1:10,2),latency=rnorm(20) )\r\nddply(latencies,.(retrieval_at),summarize,latency = mean(latency), SD= sd(latency))\r\n#   retrieval_at    latency SD\r\n# 1            X -0.4531957 NA\r\n# 2            Y -0.1979266 NA\r\nddply(latencies,.(retrieval_at),summarize,ll = mean(latency), SD= sd(latency))\r\n#   retrieval_at         ll        SD\r\n# 1            X -0.4531957 0.8025867\r\n# 2            Y -0.1979266 1.1363046\r\n```\r\n\r\n"}}