Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in group_by, NA_character_ replaced by "" (empty string) #1839

Closed
Bart6114 opened this issue May 19, 2016 · 4 comments
Closed

in group_by, NA_character_ replaced by "" (empty string) #1839

Bart6114 opened this issue May 19, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@Bart6114
Copy link

@Bart6114 Bart6114 commented May 19, 2016

relates to #1671

Apparently this bug is still here. Consider this adapted example from #1671:

test <- data.frame(id = rep(1:4, each = 3), grade = rep(c(NA, "a", NA, "b"), each = 3), stringsAsFactors = FALSE)

test %>% 
  group_by(id) %>% 
  dplyr::summarise(test = grade[1])

Results in:

     id  test
  (int) (chr)
1     1      
2     2     a
3     3    NA
4     4     b

Installing the latest dev version, as well as the suggested commit 9bae2aa, doesn't fix this issue.

@hadley hadley added this to the 0.5 milestone May 26, 2016
@hadley
Copy link
Member

@hadley hadley commented May 26, 2016

You mean replaced by "", right? (in the title)

@Bart6114 Bart6114 changed the title in group_by, NA_character_ replaced by NA in group_by, NA_character_ replaced by "" (empty string) May 26, 2016
@Bart6114
Copy link
Author

@Bart6114 Bart6114 commented May 26, 2016

Ahum... Indeed, edited the title.

@hadley
Copy link
Member

@hadley hadley commented May 27, 2016

@romainfrancois can you take a look at this one too please?

@hadley hadley added this to the future milestone May 27, 2016
@hadley hadley removed this from the 0.5 milestone May 27, 2016
@soniampub
Copy link

@soniampub soniampub commented Sep 14, 2016

@hadley I can look into this issue but I am a beginner to open source. If anyone can guide me here I would like to contribute more and more on dplyr. Please let me are there any other issues for beginner that you would like me to start on. I really appreciate your suggestions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants