You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spread with a data.frame of only two columns key and value #41
Me too: in the absence of an identifying column it should all be assumed to have the same identifier. This is important in nested (group) processing. Right now it's necessary to ungroup before spread to bring the identifiers into scope.
Activity
joshualande commentedon Dec 17, 2014
To be clear, the output is:
I would have expected the output to have one row:
alexbbrown commentedon Jan 16, 2015
Me too: in the absence of an identifying column it should all be assumed to have the same identifier. This is important in nested (group) processing. Right now it's necessary to ungroup before spread to bring the identifiers into scope.
kleinschmidt commentedon Nov 6, 2015
I've also just run into this (tidyr 0.3.1). @hadley, can you weigh in on whether this is a bug or expected behavior?
FWIW I was trying to use
spreadon the output ofbroom::tidyto get theestimatevalues into a single row with columns named forterm, as in:Seems like a perfectly good use case for
tidyr+broomso I was surprised.hadley commentedon Dec 30, 2015
More illuminating example:
This is definitely a bug