Skip to content
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

mutate destroys attributes #3742

Closed
AshesITR opened this issue Aug 7, 2018 · 3 comments
Closed

mutate destroys attributes #3742

AshesITR opened this issue Aug 7, 2018 · 3 comments

Comments

@AshesITR
Copy link

AshesITR commented Aug 7, 2018

When using custom attributes on a data frame, they are lost upon calling mutate:

data(iris)
attr(iris, "test") # NULL
attr(iris, "test") <- "yay"
attr(iris, "test") # yay
iris <- dplyr::mutate(iris, Test = 42)
attr(iris, "test") # NULL again :(
@batpigandme
Copy link
Contributor

Related #3259

@AshesITR
Copy link
Author

AshesITR commented Aug 7, 2018

Hadley closed a similar issue as duplicate of #3429.
As I understand, krmlr is working on this for the 0.9.0 release...

@AshesITR AshesITR closed this as completed Aug 7, 2018
@lock
Copy link

lock bot commented Feb 3, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Feb 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants