We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
foo <- data.frame(a = letters[c(1,2)]) bar <- tbl_df(foo) unlist(distinct(bar[, "a"][bar[, "a"]!=""]))
The text was updated successfully, but these errors were encountered:
Looks like this is actually a tibble issue.
Sorry, something went wrong.
@smckinney2718: Note that bar["a"] and bar[, "a"] still return a data frame, use bar[["a"]] to return an atomic vector.
bar["a"]
bar[, "a"]
bar[["a"]]
Corrupt data frames may come from elsewhere. It would be good if all verbs checked consistency of the input:
I remember seeing something along these lines in the code, but I'm not sure. At the very least the check doesn't seem to be active for distinct().
No branches or pull requests
The text was updated successfully, but these errors were encountered: