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

row names no longer appear after dplyr manipulation #90

Open
liliansanselme opened this issue Nov 20, 2018 · 0 comments
Open

row names no longer appear after dplyr manipulation #90

liliansanselme opened this issue Nov 20, 2018 · 0 comments

Comments

@liliansanselme
Copy link

Hello,

Thank you for this useful package!
I have a problem with rownames that disappear when I manipulate the dataframe with dplyr before using d3heatmap. For example, this displays row names correctly:

library(d3heatmap)
url <- "http://datasets.flowingdata.com/ppg2008.csv"
nba_players <- read.csv(url, row.names = 1)
d3heatmap(nba_players, scale = "column")

but this is no longer the case here:

library(d3heatmap)
library(tidyverse)
url <- "http://datasets.flowingdata.com/ppg2008.csv"
nba_players <- filter(read.csv(url, row.names = 1), FGA < 100)
d3heatmap(nba_players, scale = "column")

I think that it is due to the fact that row names are deprecated in tibbles, as discussed here:
tidyverse/tibble#123.
Is there a workaround ?

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant