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

drop_na() drops dimension for single-variable data.frame #245

Closed
jennybc opened this Issue Sep 29, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@jennybc
Member

jennybc commented Sep 29, 2016

library(tidyr)
df <- data.frame(x = c(1, 2, NA))
(res <- tidyr::drop_na_(df, "x"))
#> [1] 1 2
class(res)
#> [1] "numeric"

@hadley hadley added the bug label Jun 23, 2017

@hadley hadley closed this in dc5e935 Nov 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment