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

print.tbl_df mungles duplicate column names #1159

Closed
blasern opened this issue May 21, 2015 · 0 comments
Closed

print.tbl_df mungles duplicate column names #1159

blasern opened this issue May 21, 2015 · 0 comments

Comments

@blasern
Copy link
Contributor

@blasern blasern commented May 21, 2015

Duplicated column names are made unique (call to make.unique) before printing. This is related to Issue #820 and Issue 896, where the duplicated column names cause additional problems. Part of the problems to these issues is that they are harder to notice because of the printing issue.

# create data frame with duplicate column names
set.seed(1)
df <- data.frame(x = 1, x = 2, check.names = FALSE)
df
##   x x
## 1 1 2
as_data_frame(df)
## Source: local data frame [1 x 2]

##   x x.1
## 1 1   2
@hadley hadley closed this Aug 24, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants