{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1381","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1381/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1381/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1381/events","html_url":"https://github.com/hadley/dplyr/issues/1381","id":104541850,"number":1381,"title":"Rowwise mutate gives unexpected result.","user":{"login":"dkesh","id":1952932,"avatar_url":"https://avatars.githubusercontent.com/u/1952932?v=3","gravatar_id":"","url":"https://api.github.com/users/dkesh","html_url":"https://github.com/dkesh","followers_url":"https://api.github.com/users/dkesh/followers","following_url":"https://api.github.com/users/dkesh/following{/other_user}","gists_url":"https://api.github.com/users/dkesh/gists{/gist_id}","starred_url":"https://api.github.com/users/dkesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkesh/subscriptions","organizations_url":"https://api.github.com/users/dkesh/orgs","repos_url":"https://api.github.com/users/dkesh/repos","events_url":"https://api.github.com/users/dkesh/events{/privacy}","received_events_url":"https://api.github.com/users/dkesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T18:16:29Z","updated_at":"2015-09-02T18:16:29Z","closed_at":null,"body":"Package Version dplyr: 0.4.3\r\nR version 3.2.2\r\n\r\nRunning this code:\r\n\r\n    library( dplyr )\r\n    f  <- function( x ) ifelse( x < 2, NA_real_, x )\r\n    data_frame( x = 1:3 ) %>% rowwise() %>% mutate( y = f(x) )\r\n\r\nExpected result: data_frame( x = 1:3, y = c( NA, 2, 3))\r\nActual result: data_frame( x = 1:3, y = c( NA, 2, NA ) )"}}