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 calls strip custom attributes on dataframes #3679

Closed
davidski opened this issue Jun 18, 2018 · 2 comments
Closed

mutate calls strip custom attributes on dataframes #3679

davidski opened this issue Jun 18, 2018 · 2 comments

Comments

@davidski
Copy link

A possible duplicate/extension of #3259, mutate calls strip out custom attributes on dataframes.

suppressPackageStartupMessages(library(dplyr))
dat <- mtcars
attr(dat, "hello") <- "world"
names(attributes(dat))
#> [1] "names"     "row.names" "class"     "hello"

dat <- mutate(dat, "foo" = "bar")
names(attributes(dat))
#> [1] "class"     "names"     "row.names"

Created on 2018-06-18 by the reprex package (v0.2.0).

@davidski davidski changed the title mutate calls strip custom attributes on dataframes mutate calls strip custom attributes on dataframes Jun 18, 2018
@hadley
Copy link
Member

hadley commented Jun 18, 2018

Duplicate of #3429

@hadley hadley marked this as a duplicate of #3429 Jun 18, 2018
@hadley hadley closed this as completed Jun 18, 2018
@lock
Copy link

lock bot commented Dec 15, 2018

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 Dec 15, 2018
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