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
Supply a main data.frame and one with a join-by ID as well as columns sharing names of the main DF. This swaps in values in the auxiliary data.frame, but leaves the original values in place if there's no new one to overwrite with.
Not sure how widespread this is, have to weigh popularity against bloating the package. But I had to do a lot of this recently and have a sketch of the code already:
Yep @rgknight is correct, if tidyr adds an upsert like discussed here it'll likely be better than whatever we'd do. Closing this, keep an eye on tidyverse/tidyr#183.
Supply a main data.frame and one with a join-by ID as well as columns sharing names of the main DF. This swaps in values in the auxiliary data.frame, but leaves the original values in place if there's no new one to overwrite with.
Not sure how widespread this is, have to weigh popularity against bloating the package. But I had to do a lot of this recently and have a sketch of the code already:
The text was updated successfully, but these errors were encountered: