-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add a function for combine/vcat with source names #659
Comments
I like the idea. Could also/instead be It might also be framable in the split-apply-combine framework as some On Sun, Jul 27, 2014 at 11:49 AM, John Myles White <[email protected]
|
If you do |
On Sun, Jul 27, 2014 at 1:53 PM, John Myles White [email protected]
|
I was just looking at the tidy data paper, and it sounds like this is similar to ldply from plyr. |
Anyone still interested in this? Could be useful if someone wants to take a stab at it. @cjprybol ? |
@oxinabox seems to also want it in |
I have added it in #2649 |
Should we add a function like
vcat(df1, df2, df3, source = ["X", "Y", "Z"])
which concatenates DataFrames while also labeling their origins? In this example, the output would be equivalent to doing:The idea is to preserve the semantics of
Base.vcat
, but allow the introduction of a custom column (whose name comes from a keyword arg) that denotes the origin of each subset of data.The text was updated successfully, but these errors were encountered: