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
> inner_join(data.frame(x=c()), data.frame(x=c(1)), by="x") Error: index out of bounds
I would expect the result to be equivalent to data.frame(x=c()).
data.frame(x=c())
The text was updated successfully, but these errors were encountered:
union
inner_join
and summarise doesn't works too summarise(data.frame(a = numeric(0)), sum(a))
summarise(data.frame(a = numeric(0)), sum(a))
Sorry, something went wrong.
The problem for the original issue is that c() gives NULL and not a vector, e.g this works:
c()
NULL
inner_join(data.frame(x=numeric(0)), data.frame(x=c(1)), by="x")
The original data not only has no rows but also no columns:
> data <- data.frame(x = c()) > data tableau de données (data frame) avec 0 colonnes et 0 lignes
allow 0 sized groups, i.e. allow SlicingIndex to be empty. related to #…
c0d712c
…413
And I just fixed the second problem, i.e. the one reported by @hs3180 which was hidden deep inside.
> summarise(data.frame(a = numeric(0)), sum(a) ) sum(a) 1 0
hadley
No branches or pull requests
I would expect the result to be equivalent to
data.frame(x=c())
.The text was updated successfully, but these errors were encountered: